<?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: Beginners guide to .htaccess file with examples - Part II</title>
	<atom:link href="http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/</link>
	<description>Blogging on Software Reviews, Hardware, Downloads, Technology, Search Engines, AdSense, AdWords, Firefox, Windows, HowTo, Tips and Tricks, SEO, programming and web 2.0</description>
	<pubDate>Tue, 02 Dec 2008 13:23:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: saleem</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-9758</link>
		<dc:creator>saleem</dc:creator>
		<pubDate>Tue, 29 Apr 2008 10:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-9758</guid>
		<description>Thanks for you response, I have already refered and designed the url like this 

RewriteRule ^details/([^/\.]+)/([^/\.]+)?$ details.php?country_id=$1&#38;mls_number=$2 [L] 

but its not working... please correct it my code

Regards
Saleem</description>
		<content:encoded><![CDATA[<p>Thanks for you response, I have already refered and designed the url like this </p>
<p>RewriteRule ^details/([^/\.]+)/([^/\.]+)?$ details.php?country_id=$1&amp;mls_number=$2 [L] </p>
<p>but its not working&#8230; please correct it my code</p>
<p>Regards<br />
Saleem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-9757</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Tue, 29 Apr 2008 08:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-9757</guid>
		<description>Saleem,
You will find examples of rewriting the URLs &lt;a href="http://www.bloghash.com/2006/12/apache-mod_rewrite-examples/" rel="nofollow"&gt;here&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Saleem,<br />
You will find examples of rewriting the URLs <a href="http://www.bloghash.com/2006/12/apache-mod_rewrite-examples/" rel="nofollow">here</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saleem</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-9756</link>
		<dc:creator>saleem</dc:creator>
		<pubDate>Tue, 29 Apr 2008 07:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-9756</guid>
		<description>Hi Raj,

I want to redirect the url like

details.php?county_id=1&#38;mls_number=12345  To 
details/dutches/12345 

 Here if i pass a country_id=1 it should come 'dutches' or if i pass country_id=2 it should come 'span', Please let me give a code for this.

Regards
Saleem</description>
		<content:encoded><![CDATA[<p>Hi Raj,</p>
<p>I want to redirect the url like</p>
<p>details.php?county_id=1&amp;mls_number=12345  To<br />
details/dutches/12345 </p>
<p> Here if i pass a country_id=1 it should come &#8216;dutches&#8217; or if i pass country_id=2 it should come &#8217;span&#8217;, Please let me give a code for this.</p>
<p>Regards<br />
Saleem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murray</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-7596</link>
		<dc:creator>Murray</dc:creator>
		<pubDate>Tue, 02 Oct 2007 07:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-7596</guid>
		<description>Sorry, second line supposed to read: ...set in the &#60;VirtualHost&#62; config</description>
		<content:encoded><![CDATA[<p>Sorry, second line supposed to read: &#8230;set in the &lt;VirtualHost&gt; config</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murray</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-7595</link>
		<dc:creator>Murray</dc:creator>
		<pubDate>Tue, 02 Oct 2007 07:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-7595</guid>
		<description>Please note, for all versions of Apache, the ServerAdmin directive can only be set in the  config or globally in httpd.conf, as per documentation:

http://httpd.apache.org/docs/2.2/mod/quickreference.html

Otherwise you will get a 500 internal server error (Jamie/Raj)
Perhaps this should be removed from this blog?</description>
		<content:encoded><![CDATA[<p>Please note, for all versions of Apache, the ServerAdmin directive can only be set in the  config or globally in httpd.conf, as per documentation:</p>
<p><a href="http://httpd.apache.org/docs/2.2/mod/quickreference.html" rel="nofollow">http://httpd.apache.org/docs/2.2/mod/quickreference.html</a></p>
<p>Otherwise you will get a 500 internal server error (Jamie/Raj)<br />
Perhaps this should be removed from this blog?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reza</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5987</link>
		<dc:creator>Reza</dc:creator>
		<pubDate>Thu, 24 May 2007 15:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5987</guid>
		<description>@Raj 
Thank you for your information.</description>
		<content:encoded><![CDATA[<p>@Raj<br />
Thank you for your information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Bowen</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5973</link>
		<dc:creator>Mark Bowen</dc:creator>
		<pubDate>Thu, 24 May 2007 07:55:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5973</guid>
		<description>Hi Raj,

You are an absolute star. Thanks for looking into all of this for me it is highly appreciated.

Thanks again.

Best wishes,

Mark</description>
		<content:encoded><![CDATA[<p>Hi Raj,</p>
<p>You are an absolute star. Thanks for looking into all of this for me it is highly appreciated.</p>
<p>Thanks again.</p>
<p>Best wishes,</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5971</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Thu, 24 May 2007 06:44:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5971</guid>
		<description>@Mark,
I am researching on this. I will send you an email as soon as I find a solution. It would work when downloads folder is denied direct access but allowed when referrer is the same website. I am working on that part.

@Reza,
Looks like a permission issue. You can have your hosting company rename the htaccess file for you and set the permissions accordingly.</description>
		<content:encoded><![CDATA[<p>@Mark,<br />
I am researching on this. I will send you an email as soon as I find a solution. It would work when downloads folder is denied direct access but allowed when referrer is the same website. I am working on that part.</p>
<p>@Reza,<br />
Looks like a permission issue. You can have your hosting company rename the htaccess file for you and set the permissions accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reza</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5952</link>
		<dc:creator>Reza</dc:creator>
		<pubDate>Wed, 23 May 2007 22:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5952</guid>
		<description>Hello Raj:

Thank you so much for your help. I tried to rename the .htaccess but it did not let me to rename it and i search in their FTP files ,but i did not find any error log.
can you help me more?</description>
		<content:encoded><![CDATA[<p>Hello Raj:</p>
<p>Thank you so much for your help. I tried to rename the .htaccess but it did not let me to rename it and i search in their FTP files ,but i did not find any error log.<br />
can you help me more?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Bowen</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5950</link>
		<dc:creator>Mark Bowen</dc:creator>
		<pubDate>Wed, 23 May 2007 22:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5950</guid>
		<description>Hi Raj,

Thanks for the answer although I am a little confused as I had seen this done from within the PostNuke CMS where they had a downloads module called 'UpDownload' I think which created folders to store downloads and within those folders was a htaccess file which stopped anyone from the outside but the PostNuke system could still download from.

Not too sure exactly what was in the htaccess file now as it has been a very long time since I have used that CMS but I'm pretty sure that all they did was deny all and allow localhost and it then served up the files using the module.

Is there absolutely no way that this can be done? I'm sure there must be something. I'm of the opinion that there is just about nothing that can't be accomplished on the internet nowadays and this just seems almost fundamental. I can't understand why you can deny access to all and then you can't even get to the files yourself, not too sure why that would ever be of any help at all?

Any more help on this would be massively appreciated. Also the control panel isn't cPanel, it is Plesk so unfortunately no Anti-Leech features in there to my knowledge.

Thanks again for any help with this as it is very much appreciated.

Regards,

Mark</description>
		<content:encoded><![CDATA[<p>Hi Raj,</p>
<p>Thanks for the answer although I am a little confused as I had seen this done from within the PostNuke CMS where they had a downloads module called &#8216;UpDownload&#8217; I think which created folders to store downloads and within those folders was a htaccess file which stopped anyone from the outside but the PostNuke system could still download from.</p>
<p>Not too sure exactly what was in the htaccess file now as it has been a very long time since I have used that CMS but I&#8217;m pretty sure that all they did was deny all and allow localhost and it then served up the files using the module.</p>
<p>Is there absolutely no way that this can be done? I&#8217;m sure there must be something. I&#8217;m of the opinion that there is just about nothing that can&#8217;t be accomplished on the internet nowadays and this just seems almost fundamental. I can&#8217;t understand why you can deny access to all and then you can&#8217;t even get to the files yourself, not too sure why that would ever be of any help at all?</p>
<p>Any more help on this would be massively appreciated. Also the control panel isn&#8217;t cPanel, it is Plesk so unfortunately no Anti-Leech features in there to my knowledge.</p>
<p>Thanks again for any help with this as it is very much appreciated.</p>
<p>Regards,</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5948</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Wed, 23 May 2007 21:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5948</guid>
		<description>Hello Reza,
The 500 Internal Server Error does not occur only when something is not right with .htaccess file. You may however try to rename the .htaccess file to something else and check if the error goes away. You may also want to check for error_log file to see if it contains any information for you to debug into.
Hope this helps!</description>
		<content:encoded><![CDATA[<p>Hello Reza,<br />
The 500 Internal Server Error does not occur only when something is not right with .htaccess file. You may however try to rename the .htaccess file to something else and check if the error goes away. You may also want to check for error_log file to see if it contains any information for you to debug into.<br />
Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reza</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5944</link>
		<dc:creator>Reza</dc:creator>
		<pubDate>Wed, 23 May 2007 21:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5944</guid>
		<description>hi there...
 i am doing a web maintenance ,i saw an error  which is said" 500 internal error server". When i check in the internet i found this error is a .htaccess file. I like to remove this error from the web site because when the customer click on the link it give them that error.I tried to delet the htaccess file from our FTP ,but it did not let me. Please let me know how i should remove this error from the website.

                                            Best regards
                                            Reza</description>
		<content:encoded><![CDATA[<p>hi there&#8230;<br />
 i am doing a web maintenance ,i saw an error  which is said&#8221; 500 internal error server&#8221;. When i check in the internet i found this error is a .htaccess file. I like to remove this error from the web site because when the customer click on the link it give them that error.I tried to delet the htaccess file from our FTP ,but it did not let me. Please let me know how i should remove this error from the website.</p>
<p>                                            Best regards<br />
                                            Reza</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5930</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Wed, 23 May 2007 15:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5930</guid>
		<description>Hi Mark,
Yes, htaccess is an Apache only feature. Your hosting company is not right in saying that it doesn't work with Apache.
What you are trying to accomplish will not work. Technically, when you only allow localhost, all the files from downloads folder will not be accessible to anyone other than the localhost itself. Even if you setup a html file outside the folder and provide links to the files from downloads folder, whenever anyone clicks on that link, they will be not be localhost, so it will not work this way. If you have CPanel, you may want to use Antileech features to accomplish this.</description>
		<content:encoded><![CDATA[<p>Hi Mark,<br />
Yes, htaccess is an Apache only feature. Your hosting company is not right in saying that it doesn&#8217;t work with Apache.<br />
What you are trying to accomplish will not work. Technically, when you only allow localhost, all the files from downloads folder will not be accessible to anyone other than the localhost itself. Even if you setup a html file outside the folder and provide links to the files from downloads folder, whenever anyone clicks on that link, they will be not be localhost, so it will not work this way. If you have CPanel, you may want to use Antileech features to accomplish this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Bowen</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5927</link>
		<dc:creator>Mark Bowen</dc:creator>
		<pubDate>Wed, 23 May 2007 14:49:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-5927</guid>
		<description>Hi there,

Just to say great little tutorial on htaccess so thanks for that.
I was just wondering if anyone had any ideas as to why this isn't working for me?

HTAccess file located in a downloads folder called 'downloads'

Order deny, allow
Deny from all
Allow from localhost

What I want to be able to do is have all my files to download in the downloads folder. I then tried making a simple html file outside of the folder which linked to an image inside the downloads folder. Both on the same server. I was expecting it to show the image but not to show if I just typed in the address of the image itself.

Unfortunately it won't show at all either by using the html page or by typing the address to the image itself. I changed the htaccess file so that it didn't have the period in front of it (just to do a quick test) and the image shows up fine with the html page so I know that this isn't the problem.

I had a word with my internet hosting provider and they said that it probably wouldn't work on their servers as they are Apache based but I thought that you HAD to have Apache in order to get this to work anyway??? I can get other parts of htaccess files to work so I am a bit surprised as to why this doesn't?

I also tried using 'domainname.com' and the IP address of the server in place of localhost but none of these seem to work.

Does anyone know if there is anything else I can do with this at all. Basically what I want is if a page on my server provides a link to any file within the downloads folder then the user can view or download the file. If they just try to type in the address to the file it won't do anything. I would really like to get this working and also NOT to have to use any of the anti-leech scripts out there if at all possible.

Thank you in advance.

Mark</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Just to say great little tutorial on htaccess so thanks for that.<br />
I was just wondering if anyone had any ideas as to why this isn&#8217;t working for me?</p>
<p>HTAccess file located in a downloads folder called &#8216;downloads&#8217;</p>
<p>Order deny, allow<br />
Deny from all<br />
Allow from localhost</p>
<p>What I want to be able to do is have all my files to download in the downloads folder. I then tried making a simple html file outside of the folder which linked to an image inside the downloads folder. Both on the same server. I was expecting it to show the image but not to show if I just typed in the address of the image itself.</p>
<p>Unfortunately it won&#8217;t show at all either by using the html page or by typing the address to the image itself. I changed the htaccess file so that it didn&#8217;t have the period in front of it (just to do a quick test) and the image shows up fine with the html page so I know that this isn&#8217;t the problem.</p>
<p>I had a word with my internet hosting provider and they said that it probably wouldn&#8217;t work on their servers as they are Apache based but I thought that you HAD to have Apache in order to get this to work anyway??? I can get other parts of htaccess files to work so I am a bit surprised as to why this doesn&#8217;t?</p>
<p>I also tried using &#8216;domainname.com&#8217; and the IP address of the server in place of localhost but none of these seem to work.</p>
<p>Does anyone know if there is anything else I can do with this at all. Basically what I want is if a page on my server provides a link to any file within the downloads folder then the user can view or download the file. If they just try to type in the address to the file it won&#8217;t do anything. I would really like to get this working and also NOT to have to use any of the anti-leech scripts out there if at all possible.</p>
<p>Thank you in advance.</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wietse</title>
		<link>http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-4988</link>
		<dc:creator>Wietse</dc:creator>
		<pubDate>Thu, 03 May 2007 14:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.bloghash.com/2006/11/beginners-guide-to-htaccess-file-with-examples-part-ii/#comment-4988</guid>
		<description>okay... 
but what do i change if i want to let the link 
towerdefence.net/playindex.php?p=play-roman-sanine-tower-defence
redirects to
towerdefence.net/play/roman-sanine-tower-defence</description>
		<content:encoded><![CDATA[<p>okay&#8230;<br />
but what do i change if i want to let the link<br />
towerdefence.net/playindex.php?p=play-roman-sanine-tower-defence<br />
redirects to<br />
towerdefence.net/play/roman-sanine-tower-defence</p>
]]></content:encoded>
	</item>
</channel>
</rss>
