<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Altmint Blog &#187; 404 error</title>
	<atom:link href="http://blog.altmint.com/tag/404-error/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.altmint.com</link>
	<description></description>
	<lastBuildDate>Mon, 24 Oct 2011 09:11:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>404 redirect using htaccess</title>
		<link>http://blog.altmint.com/404-redirect-htaccess</link>
		<comments>http://blog.altmint.com/404-redirect-htaccess#comments</comments>
		<pubDate>Wed, 17 Feb 2010 07:05:49 +0000</pubDate>
		<dc:creator>Kongoti</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[404 error]]></category>
		<category><![CDATA[404 page not found redirect]]></category>
		<category><![CDATA[404 redirect]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://blog.altmint.com/?p=6</guid>
		<description><![CDATA[How do I make it so instead of a 404, the home page or any specified page comes up? Here is simple trick for that .. You will probably want to create an error document for codes 404 and 500, at the least 404 since this would give you a chance to handle requests for <a href="http://blog.altmint.com/404-redirect-htaccess">Continue Reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><strong>How do I make it so instead of a 404, the home page or any specified page comes up?</strong></p>
<p>Here is simple trick for that ..</p>
<p>You will probably want to create an error document for codes 404 and        500, at the least 404 since this would give you a chance to handle        requests for pages not found. 500 would help you out with internal server        errors in any scripts you have running. You may also want to consider        ErrorDocuments for 401 &#8211; Authorization Required (as in when somebody tries        to enter a protected area of your site without the proper credentials),        403 &#8211; Forbidden (as in when a file with permissions not allowing it to be        accessed by the user is requested) and 400 &#8211; Bad Request, which is one of        those generic kind of errors that people get to by doing some weird stuff        with your URL or scripts.</p>
<p><span id="more-6"></span></p>
<p>In order to specify your own customized error documents, you simply        need to add the following command, <em>on one line</em>, within your        htaccess file:</p>
<blockquote><p><strong>ErrorDocument code /directory/filename.ext</strong><br />
or<br />
<strong>ErrorDocument 404 /errors/notfound.html</strong><br />
This would cause any error codeÂ  resulting in 404 to be forward to          yoursite.com/errors/notfound.html</p>
<p>Likewise with:<br />
<strong>ErrorDocument 500 /errors/internalerror.html</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.altmint.com/404-redirect-htaccess/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

