<?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>Kurinchi Blogger Scribbles ... &#187; apache .htaccess</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/tag/apache-htaccess/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>.htaccess and custom error messages</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/03/htaccess-and-custom-error-messages.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/03/htaccess-and-custom-error-messages.html#comments</comments>
		<pubDate>Mon, 16 Mar 2009 23:45:18 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[LINUX]]></category>
		<category><![CDATA[Linux Server]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache .htaccess]]></category>
		<category><![CDATA[custom error message]]></category>
		<category><![CDATA[error 401]]></category>
		<category><![CDATA[error 404]]></category>
		<category><![CDATA[error 500]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=200</guid>
		<description><![CDATA[Linux: .htaccess and custom error messages When we create a domain and would like to have custom error messages for the sites that we build .htaccess file comes in handy. There may be errors related to site access sucha as 401 &#8211; Unauthorized access, 404 &#8211; Document Not Found, 500 &#8211; Internal Server Error. To [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Linux: .htaccess and custom error messages</strong></p>
<p>When we create a domain and would like to have custom error messages for the sites that we build .htaccess file comes in handy.</p>
<p>There may be errors related to site access sucha as 401 &#8211; Unauthorized access, 404 &#8211; Document Not Found, 500 &#8211; Internal Server Error. To handle such error you can create a separate folder called &#8220;errors&#8221; for the site which will have the files error401.html, error404.html, error500.html each bearing the custom messages that you would like to have it published via the web.<span id="more-200"></span></p>
<p>Then, add the following lines of code to .htaccess</p>
<p><strong>ErrorDocument 401 /error401.html<br />
ErrorDocument 404 /error404.html<br />
ErrorDocument 500 /error500.html</strong></p>
<p>Restart the server and we are good to go</p>
<p><strong>user@myhost:~# sudo /etc/init.d/apache2 restart</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/03/htaccess-and-custom-error-messages.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

