<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: 404 redirects</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/</link>
	<description></description>
	<pubDate>Mon, 08 Sep 2008 15:04:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Minimizing impact of domain change - Small Business Forum</title>
		<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-491077</link>
		<dc:creator>Minimizing impact of domain change - Small Business Forum</dc:creator>
		<pubDate>Sat, 23 Dec 2006 11:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-491077</guid>
		<description>[...] Re: Minimizing impact of domain change   I am not a technical person but I am told you can program a redirect using 404 and there is a 3 something redirect which I can recall but here is an article on the scriptygoddess » 404 redirects 404 redirect: [...]</description>
		<content:encoded><![CDATA[<p>[...] Re: Minimizing impact of domain change   I am not a technical person but I am told you can program a redirect using 404 and there is a 3 something redirect which I can recall but here is an article on the scriptygoddess » 404 redirects 404 redirect: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koldark's Komputer World</title>
		<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-12299</link>
		<dc:creator>Koldark's Komputer World</dc:creator>
		<pubDate>Thu, 05 Aug 2004 22:03:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-12299</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;404 Page&lt;/strong&gt;
Thanks to scriptygoddess I have a little bit better 404 page. It is now more dynamic and will automatically redirect you from the .html page to the .php page if it exists. I have to do a few more modifications...</description>
		<content:encoded><![CDATA[<trackback /><strong>404 Page</strong><br />
Thanks to scriptygoddess I have a little bit better 404 page. It is now more dynamic and will automatically redirect you from the .html page to the .php page if it exists. I have to do a few more modifications&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priorities & Frivolities</title>
		<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8960</link>
		<dc:creator>Priorities & Frivolities</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8960</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Comments Sections&lt;/strong&gt;
In the past few days, P&#038;F has been bombarded with spam -- of the particularly offensive sort. So I've instituted a few technical changes:Each post's...
</description>
		<content:encoded><![CDATA[<trackback /><strong>Comments Sections</strong><br />
In the past few days, P&#038;F has been bombarded with spam &#8212; of the particularly offensive sort. So I&#8217;ve instituted a few technical changes:Each post&#8217;s&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learning Movable Type</title>
		<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8959</link>
		<dc:creator>Learning Movable Type</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8959</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Custom Error Messages&lt;/strong&gt;
Error messages are the messages that are displayed when a visitor to your site encounters a server error. The most common error messages are 404: File Not Found and 403: Access Forbidden. The 404 error message is displayed when a...</description>
		<content:encoded><![CDATA[<trackback /><strong>Custom Error Messages</strong><br />
Error messages are the messages that are displayed when a visitor to your site encounters a server error. The most common error messages are 404: File Not Found and 403: Access Forbidden. The 404 error message is displayed when a&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Axiomatic Breakfast</title>
		<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8957</link>
		<dc:creator>Axiomatic Breakfast</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8957</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;Links Links Links...&lt;/strong&gt;
Just a couple of links I want to keep track of. OpenAntiVirus exiscan scriptygoddess</description>
		<content:encoded><![CDATA[<trackback /><strong>Links Links Links&#8230;</strong><br />
Just a couple of links I want to keep track of. OpenAntiVirus exiscan scriptygoddess</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: me-me-me</title>
		<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8958</link>
		<dc:creator>me-me-me</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8958</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;404 redirect&lt;/strong&gt;
if you changed the extension of the pages on your site, but didn't change any paths or names, this is a trick to get your error pages to redirect people to the php-page when they try to display the html-dito.</description>
		<content:encoded><![CDATA[<trackback /><strong>404 redirect</strong><br />
if you changed the extension of the pages on your site, but didn&#8217;t change any paths or names, this is a trick to get your error pages to redirect people to the php-page when they try to display the html-dito.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kadyellebee</title>
		<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8956</link>
		<dc:creator>kadyellebee</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8956</guid>
		<description>&lt;trackback /&gt;&lt;strong&gt;404 redirects tutorial&lt;/strong&gt;
Since I was asked how I did it (big smile at meredith!), I put together a tutorial for 404 redirects</description>
		<content:encoded><![CDATA[<trackback /><strong>404 redirects tutorial</strong><br />
Since I was asked how I did it (big smile at meredith!), I put together a tutorial for 404 redirects</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elise</title>
		<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8954</link>
		<dc:creator>elise</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8954</guid>
		<description>Amazing.  I can't believe how well this works.  And how I, a non-techie, fairly newbie could get it to work without a hitch.  Thank you Kristine.</description>
		<content:encoded><![CDATA[<p>Amazing.  I can&#8217;t believe how well this works.  And how I, a non-techie, fairly newbie could get it to work without a hitch.  Thank you Kristine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8955</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8955</guid>
		<description>Great script, I have a serious question tho,
Is it possible to script a redirect if someone changes a filename from, example:
page_1.php to page-1.php
and have a redirect to the new page?
Similar to above script but instead of it looking for html extension it looks for underscores and changes them?
I have several people that would be really interested..
thanks</description>
		<content:encoded><![CDATA[<p>Great script, I have a serious question tho,<br />
Is it possible to script a redirect if someone changes a filename from, example:<br />
page_1.php to page-1.php<br />
and have a redirect to the new page?<br />
Similar to above script but instead of it looking for html extension it looks for underscores and changes them?<br />
I have several people that would be really interested..<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sente</title>
		<link>http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8953</link>
		<dc:creator>sente</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/01/21/404-redirects/#comment-8953</guid>
		<description>Another, slightly different way of doing the same thing:


&#60;?
//get the page searched for.
$root=$_SERVER["DOCUMENT_ROOT"];
$page = parse_url($_SERVER["REQUEST_URI"]);
$page=$page[path];

//find the extension of current page
$ext_array =explode(".",$page);
$last = count($ext_array) - 1;
$ext = $ext_array[$last];

$real404 = 1;

if ($ext=="html") {
  $ext = ".$ext";
  $page=str_replace($ext,"",$page);
  $extpage=$page.".php";
  if (file_exists($root.$extpage)) {
    $real404 = 0;
    include "$extpage";
  }
}
if($real404) {
?&#62;

&#60;html&#62;
&#60;head&#62;
&#60;title&#62;Page Not Found&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;h1&#62;Page Not Found&#60;/h1&#62;
If possible, the browser will try redirecting you to the appropriate place. Otherwise, the file you clicked isn&#39;t found!
Try going to the &lt;a href="http://yoursite.com"&gt;index page&lt;/a&gt;
&#60;/body&#62;
&#60;/html&#62;
&#60;?
}
?&#62;</description>
		<content:encoded><![CDATA[<p>Another, slightly different way of doing the same thing:</p>
<p>&lt;?<br />
//get the page searched for.<br />
$root=$_SERVER["DOCUMENT_ROOT"];<br />
$page = parse_url($_SERVER["REQUEST_URI"]);<br />
$page=$page[path];</p>
<p>//find the extension of current page<br />
$ext_array =explode(&#8221;.&#8221;,$page);<br />
$last = count($ext_array) - 1;<br />
$ext = $ext_array[$last];</p>
<p>$real404 = 1;</p>
<p>if ($ext==&#8221;html&#8221;) {<br />
  $ext = &#8220;.$ext&#8221;;<br />
  $page=str_replace($ext,&#8221;",$page);<br />
  $extpage=$page.&#8221;.php&#8221;;<br />
  if (file_exists($root.$extpage)) {<br />
    $real404 = 0;<br />
    include &#8220;$extpage&#8221;;<br />
  }<br />
}<br />
if($real404) {<br />
?&gt;</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Page Not Found&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;Page Not Found&lt;/h1&gt;<br />
If possible, the browser will try redirecting you to the appropriate place. Otherwise, the file you clicked isn&#39;t found!<br />
Try going to the <a href="http://yoursite.com">index page</a><br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
&lt;?<br />
}<br />
?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.295 seconds -->
