<?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: How to create an .htaccess file</title>
	<atom:link href="http://www.tomrafteryit.net/creating-an-htaccess-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tomrafteryit.net/creating-an-htaccess-file/</link>
	<description>Tom Raftery, social media consultant, speaker, blogger and podcaster</description>
	<pubDate>Thu, 28 Aug 2008 11:32:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Haley</title>
		<link>http://www.tomrafteryit.net/creating-an-htaccess-file/#comment-116163</link>
		<dc:creator>Haley</dc:creator>
		<pubDate>Fri, 18 Apr 2008 01:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomrafteryit.net/views/?p=123#comment-116163</guid>
		<description>I have a question regarding setting up an .htaccess file  .   I am trying to allow access to a directory based on the referrer being the following:

http://www.example.com/somedirectory/home.php

I have .pdf files and .doc files as well as .php and .html files in another directory

http://www.example.com/directory2/example.doc


/directory2/
     example.doc
     page.pdf
     index.html
     page.php

I only want the directories under directory2 to be served to the client if the referrer comes from only the one single above page in my domain.  And if this is not the case, redirect the user to the following page:

http://www.example.com/access_error.php

How do I construct the .htaccess file so that this will work under Apache Tomcat??  I have been researching this for many days now, and need it for a project I'm doing.  I know it's something small and silly, I just can't figure it out, and I want to be able to copy the .htaccess to other directories, and add it to new directories down the road.  So the .htaccess file needs to only effect the directory it's in.  Any help would be greatly appreciated.

Sincerely,
Haley Miska
Web Programmer</description>
		<content:encoded><![CDATA[<p>I have a question regarding setting up an .htaccess file  .   I am trying to allow access to a directory based on the referrer being the following:</p>
<p><a href="http://www.example.com/somedirectory/home.php">http://www.example.com/somedirectory/home.php</a></p>
<p>I have .pdf files and .doc files as well as .php and .html files in another directory</p>
<p><a href="http://www.example.com/directory2/example.doc">http://www.example.com/directory2/example.doc</a></p>
<p>/directory2/<br />
     example.doc<br />
     page.pdf<br />
     index.html<br />
     page.php</p>
<p>I only want the directories under directory2 to be served to the client if the referrer comes from only the one single above page in my domain.  And if this is not the case, redirect the user to the following page:</p>
<p><a href="http://www.example.com/access_error.php">http://www.example.com/access_error.php</a></p>
<p>How do I construct the .htaccess file so that this will work under Apache Tomcat??  I have been researching this for many days now, and need it for a project I&#8217;m doing.  I know it&#8217;s something small and silly, I just can&#8217;t figure it out, and I want to be able to copy the .htaccess to other directories, and add it to new directories down the road.  So the .htaccess file needs to only effect the directory it&#8217;s in.  Any help would be greatly appreciated.</p>
<p>Sincerely,<br />
Haley Miska<br />
Web Programmer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan from Igloo</title>
		<link>http://www.tomrafteryit.net/creating-an-htaccess-file/#comment-110417</link>
		<dc:creator>Jan from Igloo</dc:creator>
		<pubDate>Thu, 06 Sep 2007 10:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomrafteryit.net/views/?p=123#comment-110417</guid>
		<description>Simple question, a little off-topic, but anyway ... Is it possible to use .htpasswd and .htaccess without having SSH access to the server? Or another words: Is it possible to protect your folders with passwords without having any SSH access?

I have been trying to find something on this topic (because I wanted to protect few folders on my site), but I wasn't able to solve this problem properly... So now I am using .htaccess only (IP: deny, allow).</description>
		<content:encoded><![CDATA[<p>Simple question, a little off-topic, but anyway &#8230; Is it possible to use .htpasswd and .htaccess without having SSH access to the server? Or another words: Is it possible to protect your folders with passwords without having any SSH access?</p>
<p>I have been trying to find something on this topic (because I wanted to protect few folders on my site), but I wasn&#8217;t able to solve this problem properly&#8230; So now I am using .htaccess only (IP: deny, allow).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using .htaccess to stop remote image linking (hotlinking) and bandwidth theft &#187; at Tom Raftery&#8217;s I.T. views</title>
		<link>http://www.tomrafteryit.net/creating-an-htaccess-file/#comment-6479</link>
		<dc:creator>Using .htaccess to stop remote image linking (hotlinking) and bandwidth theft &#187; at Tom Raftery&#8217;s I.T. views</dc:creator>
		<pubDate>Thu, 16 Mar 2006 18:41:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomrafteryit.net/views/?p=123#comment-6479</guid>
		<description>[...] The most straightforward is to simply create an .htaccess file with the following code: [...]</description>
		<content:encoded><![CDATA[<p>[...] The most straightforward is to simply create an .htaccess file with the following code: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using .htaccess to minimise comment and referrer spam &#171; Tom Raftery&#8217;s I.T. views</title>
		<link>http://www.tomrafteryit.net/creating-an-htaccess-file/#comment-2310</link>
		<dc:creator>Using .htaccess to minimise comment and referrer spam &#171; Tom Raftery&#8217;s I.T. views</dc:creator>
		<pubDate>Thu, 03 Nov 2005 11:09:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomrafteryit.net/views/?p=123#comment-2310</guid>
		<description>[...] IMPORTANT WARNING: the .htaccess file is a very unforgiving file. It has the power to make your entire site unavailable to anyone. It is strongly advised to read up on Regular Expressions and Mod_Rewrite (the Apache module which processes these commands in a .htaccess file) before creating a .htaccess file or modifying an existing one. [...]</description>
		<content:encoded><![CDATA[<p>[...] IMPORTANT WARNING: the .htaccess file is a very unforgiving file. It has the power to make your entire site unavailable to anyone. It is strongly advised to read up on Regular Expressions and Mod_Rewrite (the Apache module which processes these commands in a .htaccess file) before creating a .htaccess file or modifying an existing one. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Raftery&#8217;s I.T. ramblings  &#187; Using .htaccess to minimise comment and referrer spam</title>
		<link>http://www.tomrafteryit.net/creating-an-htaccess-file/#comment-483</link>
		<dc:creator>Tom Raftery&#8217;s I.T. ramblings  &#187; Using .htaccess to minimise comment and referrer spam</dc:creator>
		<pubDate>Sat, 12 Feb 2005 11:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.tomrafteryit.net/views/?p=123#comment-483</guid>
		<description>[...]  Mod_Rewrite (the Apache module which processes these commands in a .htaccess file) before creating a .htaccess file or modifying an existing one.  	 													 	 	  				 [...]</description>
		<content:encoded><![CDATA[<p>[...]  Mod_Rewrite (the Apache module which processes these commands in a .htaccess file) before creating a .htaccess file or modifying an existing one.  	</p>
<p> 				 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
