<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Commenti a: Apache mod_rewrite tweaks</title>
	<atom:link href="http://vortexmind.net/2006-02-28-apache-mod_rewrite-tweaks/feed/" rel="self" type="application/rss+xml" />
	<link>http://vortexmind.net/2006-02-28-apache-mod_rewrite-tweaks/</link>
	<description>Who controls the past, controls the future. Who controls the present, controls the past.</description>
	<lastBuildDate>Sat, 20 Mar 2010 12:11:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Di: rob</title>
		<link>http://vortexmind.net/2006-02-28-apache-mod_rewrite-tweaks/comment-page-1/#comment-39886</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Wed, 23 Jul 2008 22:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.vortexmind.net/index.php/2006-02-28-apache-mod_rewrite-tweaks/#comment-39886</guid>
		<description>how do you get the mod_rewrite to allow same page anchors as the setup i have wont allow it?</description>
		<content:encoded><![CDATA[<p>how do you get the mod_rewrite to allow same page anchors as the setup i have wont allow it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Macster</title>
		<link>http://vortexmind.net/2006-02-28-apache-mod_rewrite-tweaks/comment-page-1/#comment-27470</link>
		<dc:creator>Macster</dc:creator>
		<pubDate>Fri, 13 Apr 2007 19:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.vortexmind.net/index.php/2006-02-28-apache-mod_rewrite-tweaks/#comment-27470</guid>
		<description>Reading many htacceess redirect tips and Mod Rewrite tips I leave with a question.  In my case I am using Apache services and have .htaccess running fine.  Tutorials give both examples how to implement redirects.

I want to redirect using root level .htaccess file, not by by editing httpd.conf file everytime. In the root .htaccess file I currently list redirects like this ( 
RewriteEngine on
RewriteRule ^/products/foo(/)?*$ /products/newsletter/index.html [R=302,L] 
)

This is working. My questions is should I really be using this instead?

redirect 302 /products/foo /products/newsletter/index.html

It is important to work with or without training /.

PS. What does the ,L mean or do?</description>
		<content:encoded><![CDATA[<p>Reading many htacceess redirect tips and Mod Rewrite tips I leave with a question.  In my case I am using Apache services and have .htaccess running fine.  Tutorials give both examples how to implement redirects.</p>
<p>I want to redirect using root level .htaccess file, not by by editing httpd.conf file everytime. In the root .htaccess file I currently list redirects like this (<br />
RewriteEngine on<br />
RewriteRule ^/products/foo(/)?*$ /products/newsletter/index.html [R=302,L]<br />
)</p>
<p>This is working. My questions is should I really be using this instead?</p>
<p>redirect 302 /products/foo /products/newsletter/index.html</p>
<p>It is important to work with or without training /.</p>
<p>PS. What does the ,L mean or do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Warren</title>
		<link>http://vortexmind.net/2006-02-28-apache-mod_rewrite-tweaks/comment-page-1/#comment-5623</link>
		<dc:creator>Warren</dc:creator>
		<pubDate>Wed, 23 Aug 2006 17:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.vortexmind.net/index.php/2006-02-28-apache-mod_rewrite-tweaks/#comment-5623</guid>
		<description>Hi there 

I have a question related to this post.

If I have a domain that says www.warren.com/file/eample.pdf

and I have a new system where I dont use the directory &quot;file&quot; just www.warren.com/example.pdf

but people still go to www.warren.com/file/example.pdf to get that document how do I use the mod rewrite to make it so if they put in www.warren.com/file/example.pdf they will be automatically sent to www.warren.com/example.pdf.

where would I go to change this and what would the code be.

sorry if not explained well.

thanks</description>
		<content:encoded><![CDATA[<p>Hi there </p>
<p>I have a question related to this post.</p>
<p>If I have a domain that says <a href="http://www.warren.com/file/eample.pdf" rel="nofollow">http://www.warren.com/file/eample.pdf</a></p>
<p>and I have a new system where I dont use the directory &#8220;file&#8221; just <a href="http://www.warren.com/example.pdf" rel="nofollow">http://www.warren.com/example.pdf</a></p>
<p>but people still go to <a href="http://www.warren.com/file/example.pdf" rel="nofollow">http://www.warren.com/file/example.pdf</a> to get that document how do I use the mod rewrite to make it so if they put in <a href="http://www.warren.com/file/example.pdf" rel="nofollow">http://www.warren.com/file/example.pdf</a> they will be automatically sent to <a href="http://www.warren.com/example.pdf" rel="nofollow">http://www.warren.com/example.pdf</a>.</p>
<p>where would I go to change this and what would the code be.</p>
<p>sorry if not explained well.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: DragonFlyEye</title>
		<link>http://vortexmind.net/2006-02-28-apache-mod_rewrite-tweaks/comment-page-1/#comment-1678</link>
		<dc:creator>DragonFlyEye</dc:creator>
		<pubDate>Thu, 04 May 2006 18:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.vortexmind.net/index.php/2006-02-28-apache-mod_rewrite-tweaks/#comment-1678</guid>
		<description>Hey!

My question is about the order of rewrite rules as they&#039;re processed.  Most of what I&#039;ve read so far elsewhere has been a bit ambiguous.  My question is: if you have four RewriteRule&#039;s in a row, does Apache automatically apply the first relevant rule, or does it require that you add in the [L] flag?  I understand that the RewriteRule is read before the RewriteCondition, to be applied when the condition is met, but do these Condition/Rule pairings constitute a block which is executed together?  Does the [L] flag work like a &quot;break&quot; in PHP?

Really confusing the heck out of myself, here.  Any enlightenment possible would be very helpful.</description>
		<content:encoded><![CDATA[<p>Hey!</p>
<p>My question is about the order of rewrite rules as they&#8217;re processed.  Most of what I&#8217;ve read so far elsewhere has been a bit ambiguous.  My question is: if you have four RewriteRule&#8217;s in a row, does Apache automatically apply the first relevant rule, or does it require that you add in the [L] flag?  I understand that the RewriteRule is read before the RewriteCondition, to be applied when the condition is met, but do these Condition/Rule pairings constitute a block which is executed together?  Does the [L] flag work like a &#8220;break&#8221; in PHP?</p>
<p>Really confusing the heck out of myself, here.  Any enlightenment possible would be very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Vortexmind</title>
		<link>http://vortexmind.net/2006-02-28-apache-mod_rewrite-tweaks/comment-page-1/#comment-625</link>
		<dc:creator>Vortexmind</dc:creator>
		<pubDate>Fri, 31 Mar 2006 04:36:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.vortexmind.net/index.php/2006-02-28-apache-mod_rewrite-tweaks/#comment-625</guid>
		<description>Hi. I assume Larry is using Apache Webserver. This happens because he turned &lt;strong&gt;Directory Indexing&lt;/strong&gt; on. From the Apache FAQ:
&lt;blockquote&gt;
To turn off automatic directory indexing, remove the Indexes keyword from the appropriate Options line. To turn off directory listing for a particular subdirectory, you can use Options -Indexes. For example:

    &lt;Directory /path/to/directory&gt;
       Options -Indexes
    &lt;/Directory&gt;
&lt;/blockquote&gt;
Hope this helps :)</description>
		<content:encoded><![CDATA[<p>Hi. I assume Larry is using Apache Webserver. This happens because he turned <strong>Directory Indexing</strong> on. From the Apache FAQ:</p>
<blockquote><p>
To turn off automatic directory indexing, remove the Indexes keyword from the appropriate Options line. To turn off directory listing for a particular subdirectory, you can use Options -Indexes. For example:</p>
<p>    &lt;Directory /path/to/directory&gt;<br />
       Options -Indexes<br />
    &lt;/Directory&gt;
</p></blockquote>
<p>Hope this helps <img src="http://vortexmind.net/wp-includes/images/yahoo/yahoo1.gif" class="wp-smiley" alt="smiley"/></p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Larry</title>
		<link>http://vortexmind.net/2006-02-28-apache-mod_rewrite-tweaks/comment-page-1/#comment-623</link>
		<dc:creator>Larry</dc:creator>
		<pubDate>Thu, 30 Mar 2006 21:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.vortexmind.net/index.php/2006-02-28-apache-mod_rewrite-tweaks/#comment-623</guid>
		<description>Hi!  My name is Chris and I work at Help.com.  One of our members posted a question and after reviewing your blog I thought you might be able to provide some advice.  See below for their forwarded question:
	
&quot;everytime I access my site I get an index page and the words Index on it and a link to all of 	the files that I have in my folder.  Why? and what can I do to fix this problem?&quot;
	~Larry

If you have the know-how and time to offer any insight, please contact Larry.  Thanks!</description>
		<content:encoded><![CDATA[<p>Hi!  My name is Chris and I work at Help.com.  One of our members posted a question and after reviewing your blog I thought you might be able to provide some advice.  See below for their forwarded question:</p>
<p>&#8220;everytime I access my site I get an index page and the words Index on it and a link to all of 	the files that I have in my folder.  Why? and what can I do to fix this problem?&#8221;<br />
	~Larry</p>
<p>If you have the know-how and time to offer any insight, please contact Larry.  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
