<?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>Linux Servers cPanel webhosting blog &#187; .htaccess</title>
	<atom:link href="http://www.theperfectarts.com/category/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theperfectarts.com</link>
	<description>Basics cPanel tutorials / issue,mysql,php errors etc</description>
	<lastBuildDate>Wed, 08 Feb 2012 05:58:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Redirect loop and LimitInternalRecursion error message.</title>
		<link>http://www.theperfectarts.com/2010/09/redirect-loop-and-limitinternalrecursion-error-message/</link>
		<comments>http://www.theperfectarts.com/2010/09/redirect-loop-and-limitinternalrecursion-error-message/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 11:06:37 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Common errors]]></category>
		<category><![CDATA[.htaccess file]]></category>
		<category><![CDATA[apache error redirect loop]]></category>
		<category><![CDATA[increase the limit of redirect]]></category>
		<category><![CDATA[loop error message]]></category>
		<category><![CDATA[Redirect loop]]></category>
		<category><![CDATA[Redirect loop message]]></category>
		<category><![CDATA[redirect not working]]></category>
		<category><![CDATA[Request exceeded the limit of 10 internal redirects]]></category>
		<category><![CDATA[Use 'LimitInternalRecursion']]></category>
		<category><![CDATA[Use 'LogLevel debug' to get a backtrace]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1167</guid>
		<description><![CDATA[Most of the time we receive following redirect loop error message. Request exceeded the limit of 10 internal redirects due to probable configuration error. Use &#8216;LimitInternalRecursion&#8217; to increase the limit if necessary. Use &#8216;LogLevel debug&#8217; to get a backtrace To avoid above error message simply use following code in .htaccess file. RewriteCond %{ENV:REDIRECT_STATUS} 100 RewriteRule [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the time we receive following redirect loop error message.</p>
<input type="hidden" name="IL_RELATED_TAGS" value="1"/>
<p><strong>Request exceeded the limit of 10 internal redirects due to probable configuration error. Use &#8216;LimitInternalRecursion&#8217; to increase the limit if necessary. Use &#8216;LogLevel debug&#8217; to get a backtrace</strong><br />
To avoid above error message simply use following code in .htaccess file.</p>
<p>RewriteCond %{ENV:REDIRECT_STATUS} 100</p>
<blockquote>
<pre>RewriteRule .* - [L]</pre>
</blockquote>
<p><strong><br />
</strong></p>
<input type="hidden" name="IL_RELATED_TAGS" value="1"/>
    <script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2010/09/redirect-loop-and-limitinternalrecursion-error-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Parse error: syntax error, unexpected T_STRING?</title>
		<link>http://www.theperfectarts.com/2009/12/php-parse-error-syntax-error-unexpected-t_string/</link>
		<comments>http://www.theperfectarts.com/2009/12/php-parse-error-syntax-error-unexpected-t_string/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 05:26:24 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Parse error]]></category>
		<category><![CDATA[PHP Parse error: syntax error]]></category>
		<category><![CDATA[php_flag short_open_tag X]]></category>
		<category><![CDATA[short_open_tag]]></category>
		<category><![CDATA[suexec]]></category>
		<category><![CDATA[unexpected T_STRING]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=795</guid>
		<description><![CDATA[If you receive following error in the error logs &#8221; PHP Parse error: syntax error, unexpected T_STRING&#8221; Then you can add following line in the .htaccess file php_flag short_open_tag X Or If your server is SuExec enabled then you can use following code in php.ini file short_open_tag = X &#169;2012 Linux Servers cPanel webhosting blog. [...]]]></description>
			<content:encoded><![CDATA[<p>If you receive following error in the error logs</p>
<p><span style="color: #800000;">&#8221; PHP Parse error: syntax error, unexpected T_STRING&#8221;</span><br />
Then you can add following line in the .htaccess file</p>
<p><span style="color: #800000;">php_flag short_open_tag X </span></p>
<p>Or</p>
<p>If your server is <a href="http://www.theperfectarts.com/2009/08/simply-check-server-is-suexec-or-not/" target="_blank">SuExec enabled </a>then you can use following code in php.ini file<br />
<span style="color: #800000;">short_open_tag = X</span><br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/12/php-parse-error-syntax-error-unexpected-t_string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to stop forum get injected from hackers?</title>
		<link>http://www.theperfectarts.com/2009/12/how-to-stop-forum-get-injected-fom-hackers/</link>
		<comments>http://www.theperfectarts.com/2009/12/how-to-stop-forum-get-injected-fom-hackers/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 08:49:44 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Third party script issue]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=777</guid>
		<description><![CDATA[In now a days its very easy to inject any forum.You can secure your forum by using following code in your .htaccess #spam bots SetEnvIfNoCase User-Agent “^EmailSiphon” bad_bot SetEnvIfNoCase User-Agent “^EmailWolf” bad_bot SetEnvIfNoCase User-Agent “^ExtractorPro” bad_bot SetEnvIfNoCase User-Agent “^CherryPicker” bad_bot SetEnvIfNoCase User-Agent “^NICErsPRO” bad_bot SetEnvIfNoCase User-Agent “^Teleport” bad_bot SetEnvIfNoCase User-Agent “^EmailCollector” bad_bot #plagarism bot SetEnvIfNoCase [...]]]></description>
			<content:encoded><![CDATA[<p>In now a days its very easy to inject any forum.You can secure your forum by using following code in your .htaccess</p>
<p><span style="color: #800000;">#spam bots SetEnvIfNoCase User-Agent “^EmailSiphon” bad_bot SetEnvIfNoCase User-Agent “^EmailWolf” bad_bot SetEnvIfNoCase User-Agent “^ExtractorPro” bad_bot SetEnvIfNoCase User-Agent “^CherryPicker” bad_bot SetEnvIfNoCase User-Agent “^NICErsPRO” bad_bot SetEnvIfNoCase User-Agent “^Teleport” bad_bot SetEnvIfNoCase User-Agent “^EmailCollector” bad_bot #plagarism bot SetEnvIfNoCase User-Agent “^TurnitinBot” bad_bot #IP bot SetEnvIfNoCase User-Agent “^NPBot” bad_bot #Worm sign SetEnvIfNoCase User-Agent “^LWP::Simple” bad_bot SetEnvIfNoCase User-Agent “^lwp-trivial” bad_bot SetEnvIfNoCase User-Agent “^lwp” bad_bot SetEnvIfNoCase User-Agent “^LWP” bad_bot #Worm sign Order Allow,Deny Allow from all Deny from env=bad_bot</span><br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/12/how-to-stop-forum-get-injected-fom-hackers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to parse php pages in html page?</title>
		<link>http://www.theperfectarts.com/2009/12/how-to-parse-php-pages-in-html-page/</link>
		<comments>http://www.theperfectarts.com/2009/12/how-to-parse-php-pages-in-html-page/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 18:51:49 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=726</guid>
		<description><![CDATA[You can use following code in .htaccess file to parse php pages in html pages RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html To can check above code is working ir not? by creating one test page with following code root@gunjan[~]#pico test.html < html> < head> < body> < h1> < ?php echo "WORKING FINE!"; [...]]]></description>
			<content:encoded><![CDATA[<p>You can use following code in .htaccess file to parse php pages in html pages</p>
<p>RemoveHandler .html .htm<br />
AddType application/x-httpd-php .php .htm .html</p>
<p>To can check above code is working ir not? by creating one test page with following code</p>
<p>root@gunjan[~]#pico test.html</p>
<p>< html><br />
< head></head><br />
< body><br />
< h1><br />
 < ?php echo "WORKING FINE!"; ?><br />
< /h1><br />
< /body><br />
< /html><br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/12/how-to-parse-php-pages-in-html-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect code from http to https by using .htaccess?</title>
		<link>http://www.theperfectarts.com/2009/11/redirect-code-from-http-to-https-by-using-htaccess/</link>
		<comments>http://www.theperfectarts.com/2009/11/redirect-code-from-http-to-https-by-using-htaccess/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 02:47:20 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[http to https redirect by using .htaccess]]></category>
		<category><![CDATA[Redirect code from http to https]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=587</guid>
		<description><![CDATA[Your can redirect all http (Non-secure) URL to https by using following code in .htaccess file. RewriteEngine on Options +FollowSymLinks RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] &#169;2012 Linux Servers cPanel webhosting blog. All Rights Reserved..]]></description>
			<content:encoded><![CDATA[<p>Your can redirect all http (Non-secure) URL to https by using following code in .htaccess file.</p>
<p><strong><span style="color: #800000;">RewriteEngine on<br />
Options +FollowSymLinks<br />
RewriteCond %{SERVER_PORT} !^443$<br />
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]</span></strong><br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/11/redirect-code-from-http-to-https-by-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirect code from https to http?</title>
		<link>http://www.theperfectarts.com/2009/11/redirect-code-from-https-to-http/</link>
		<comments>http://www.theperfectarts.com/2009/11/redirect-code-from-https-to-http/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 02:42:18 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=585</guid>
		<description><![CDATA[Your can redirect all https (Secure) URL to http by using following code in .htaccess file. RewriteEngine on Options +FollowSymLinks RewriteCond %{SERVER_PORT} !^80$ RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [L,R] &#169;2012 Linux Servers cPanel webhosting blog. All Rights Reserved..]]></description>
			<content:encoded><![CDATA[<p>Your can redirect all https (Secure) URL to http by using following code in .htaccess file.</p>
<p><strong><span style="color: #800000;">RewriteEngine on<br />
Options +FollowSymLinks<br />
RewriteCond %{SERVER_PORT} !^80$<br />
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [L,R]</span></strong></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/11/redirect-code-from-https-to-http/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable directory listing for folders by using .htaccess?</title>
		<link>http://www.theperfectarts.com/2009/11/disable-directory-listing-for-folders-by-using-htaccess/</link>
		<comments>http://www.theperfectarts.com/2009/11/disable-directory-listing-for-folders-by-using-htaccess/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 22:45:45 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Server Security]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[Directory listing with .htaccess]]></category>
		<category><![CDATA[Disable directory listing]]></category>
		<category><![CDATA[htaccess code to disable directory listing]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=468</guid>
		<description><![CDATA[To disable the Directory listing for folders you need to create the .htaccess file under the each an every folder under which you want to disable the Directory listing and insert the following code in .htaccess file. &#8212;&#8212;&#8212;&#8212; Options -Indexes &#8212;&#8212;&#8212;&#8212;- &#169;2012 Linux Servers cPanel webhosting blog. All Rights Reserved..]]></description>
			<content:encoded><![CDATA[<p>To disable the Directory listing for folders you need to create the .htaccess file under the each an every folder under which you want to disable the Directory listing and insert the following code in .htaccess file.</p>
<p>&#8212;&#8212;&#8212;&#8212;<br />
<strong><span style="color: #800000;">Options -Indexes</span></strong><br />
&#8212;&#8212;&#8212;&#8212;-<br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/11/disable-directory-listing-for-folders-by-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>htaccess pcfg_openfile unable to check htaccess file (403 error)</title>
		<link>http://www.theperfectarts.com/2009/11/htaccess-pcfg_openfile-unable-to-check-htaccess-file-403-error/</link>
		<comments>http://www.theperfectarts.com/2009/11/htaccess-pcfg_openfile-unable-to-check-htaccess-file-403-error/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 20:05:32 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[.htaccess file]]></category>
		<category><![CDATA[.htaccess pcfg_openfile: unable to check htaccess file]]></category>
		<category><![CDATA[403 error message]]></category>
		<category><![CDATA[403 forbidden]]></category>
		<category><![CDATA[ensure it is readable]]></category>
		<category><![CDATA[nobody user]]></category>
		<category><![CDATA[pcfg_openfile]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=444</guid>
		<description><![CDATA[If you are receiving 403 error message after browsing your domain than check the Apache error logs. root@admin[~]tail -f /usr/local/apache/logs/error_log [Tue Nov 17 19:38:32 2009] [crit] [client 192.168.0.2] (13)Permission denied: /home/admin/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable As per above logs it seems that the nobody user is not getting read [...]]]></description>
			<content:encoded><![CDATA[<p>If you are receiving 403 error message after browsing your domain than check the Apache error logs.</p>
<p><span style="color: #800000;"><strong>root@admin[~]tail -f /usr/local/apache/logs/error_log</strong></span></p>
<p>[Tue Nov 17 19:38:32 2009] [crit] [client 192.168.0.2] (13)Permission denied: /home/admin/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable</p>
<p>As per above logs it seems that the nobody user is not getting read and executing permission upto any of that folder.So make sure that the public_html and the subdomain are set read and executing permission for nobody user.<br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/11/htaccess-pcfg_openfile-unable-to-check-htaccess-file-403-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stop hotlinking from outside domains by using .htaccess?</title>
		<link>http://www.theperfectarts.com/2009/11/stop-hotlinking-from-outside-domains-by-using-htaccess/</link>
		<comments>http://www.theperfectarts.com/2009/11/stop-hotlinking-from-outside-domains-by-using-htaccess/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 04:18:20 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[hotlink code]]></category>
		<category><![CDATA[hotlink protection]]></category>
		<category><![CDATA[hotlink protection with .htaccess]]></category>
		<category><![CDATA[hotlink with .htaccess]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=378</guid>
		<description><![CDATA[How to stop hotlinking from outsides domains. You can stop the hotlinking from outsider domain by using following rule in .htaccess RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://(.+.)?domain.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://(.+.)?domain1.com/ [NC,OR] RewriteCond %{HTTP_REFERER} ^http://(.+.)?domain2.com/ [NC] RewriteRule .*.(jpe?g&#124;gif&#124;bmp&#124;png)$ /images/nohotlink.jpe [L] You can also display a 403 Forbidden Error page instead of an image (nohotlink.jpe) Replace last [...]]]></description>
			<content:encoded><![CDATA[<p>How to stop hotlinking from outsides domains.</p>
<p>You can stop the hotlinking from outsider domain by using following rule in .htaccess</p>
<p><strong><span style="color: #800000;">RewriteEngine On</span></strong><br />
<strong><span style="color: #800000;"> RewriteCond %{HTTP_REFERER} ^http://(.+.)?domain.com/ [NC,OR]</span></strong><br />
<strong><span style="color: #800000;"> RewriteCond %{HTTP_REFERER} ^http://(.+.)?domain1.com/ [NC,OR]</span></strong><br />
<strong><span style="color: #800000;"> RewriteCond %{HTTP_REFERER} ^http://(.+.)?domain2.com/ [NC]</span></strong><br />
<strong><span style="color: #800000;"> RewriteRule .*.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L]</span></strong></p>
<p>You can also display a 403 Forbidden Error page instead of an image (nohotlink.jpe)</p>
<p>Replace last line on above code with the following code</p>
<p>RewriteRule .*.(jpe?g|gif|bmp|png)$ &#8211; [F]<br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/11/stop-hotlinking-from-outside-domains-by-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress default .htaccess file?</title>
		<link>http://www.theperfectarts.com/2009/11/wordpress-default-htaccess-file/</link>
		<comments>http://www.theperfectarts.com/2009/11/wordpress-default-htaccess-file/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 03:39:14 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.htaccess file]]></category>
		<category><![CDATA[Wordpress default .htaccess]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=375</guid>
		<description><![CDATA[The default wordpress .htaccess file code is as follows # BEGIN wordpress &#60;IfModule mod_rewrite.c&#62; RewriteEngine On RewriteBase / RewriteCond %{REQUEST_fileNAME} !-f RewriteCond %{REQUEST_fileNAME} !-d RewriteRule . /index.php [L] &#60;/IfModule&#62; # END wordpress &#169;2012 Linux Servers cPanel webhosting blog. All Rights Reserved..]]></description>
			<content:encoded><![CDATA[<p>The default wordpress .htaccess file code is as follows</p>
<p><span style="color: #800000;"># BEGIN wordpress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_fileNAME} !-f<br />
RewriteCond %{REQUEST_fileNAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/IfModule&gt;<br />
# END wordpress</span><br />
<script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/11/wordpress-default-htaccess-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

