<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB"><title>Comments on Ignore Directories in mod_rewrite - AddedBytes.com</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/" /><link rel="self" type="application/xml" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/atom/" /><subtitle>Latest comments on Ignore Directories in mod_rewrite on AddedBytes.com</subtitle><author><name>Dave Child</name></author><updated>2005-09-08T12:00:00Z</updated><id>tag:addedbytes.com,2005:250</id><!-- ckey="76C662BB" --><entry><title>Comment on Ignore Directories in mod_rewrite</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/" /><summary type="text">Comment by Justin ( &lt;a href="http://www.justinmeighan.com"&gt;http://www.justinmeighan.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;I must side with Dario, i'd rather drop a near empty htacess file, than have my hair fall out as I take my entire site down because I mussed up a regex ;)&lt;br /&gt;
&lt;br /&gt;
</summary><id>tag:addedbytes.com,2008:105287</id><published>2008-10-10T15:47:35+01:00</published><updated>2008-10-10T15:47:35Z</updated></entry><entry><title>Comment on Ignore Directories in mod_rewrite</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/" /><summary type="text">Comment by Ed ( &lt;a href="http://www.onlinepersonalassistant.com"&gt;http://www.onlinepersonalassistant.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;This has just very happily fixed it for me: http://www.andrewrollins.com/2008/01/22/wordpress-and-htaccess-password-protected-directories/</summary><id>tag:addedbytes.com,2008:105182</id><published>2008-10-06T01:03:12+01:00</published><updated>2008-10-06T01:03:12Z</updated></entry><entry><title>Comment on Ignore Directories in mod_rewrite</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/" /><summary type="text">Comment by michael ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I'm trying to 'ignore' a zenphoto directory that is in my wordpress installation. Tried your idea, but no success.&lt;br /&gt;
&lt;br /&gt;
I currently have the following in my .htaccess file:&lt;br /&gt;
&lt;br /&gt;
# BEGIN WordPress&lt;br /&gt;
&lt;IfModule mod_rewrite.c&gt;&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
RewriteBase /&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
RewriteRule . /index.php [L]&lt;br /&gt;
&lt;/IfModule&gt;&lt;br /&gt;
# END WordPress&lt;br /&gt;
&lt;br /&gt;
which gives me some nice names, but messes up my zenphoto gallery, spitting out raw html.&lt;br /&gt;
&lt;br /&gt;
My root is a bit like this...&lt;br /&gt;
wp-content&lt;br /&gt;
wp-admin&lt;br /&gt;
wp-includes&lt;br /&gt;
zenphoto&lt;br /&gt;
&lt;br /&gt;
It's ok for the htaccess to affect the first three, as they're WP, but I need to &quot;ignore&quot; zenphoto. How do I do this?</summary><id>tag:addedbytes.com,2008:105174</id><published>2008-10-05T14:42:55+01:00</published><updated>2008-10-05T14:42:55Z</updated></entry><entry><title>Comment on Ignore Directories in mod_rewrite</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/" /><summary type="text">Comment by Jon ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Thanks trifid, this code works perfectly.</summary><id>tag:addedbytes.com,2008:96770</id><published>2008-06-11T21:34:15+01:00</published><updated>2008-06-11T21:34:15Z</updated></entry><entry><title>Comment on Ignore Directories in mod_rewrite</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/" /><summary type="text">Comment by trifid ( &lt;a href="http://trifidian@gmail.com"&gt;http://trifidian@gmail.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Thanks!, worked just the way I wanted with a single line except you have to specify DIR name in .htaccess, &lt;br /&gt;but the following works without DIR name with 3 lines.&lt;br /&gt;[code]&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} -f [NC,OR]&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} -d [NC]&lt;br /&gt;RewriteRule .* - [L]&lt;br /&gt;[/code]</summary><id>tag:addedbytes.com,2008:84724</id><published>2008-04-02T02:00:44+01:00</published><updated>2008-04-02T02:00:44Z</updated></entry><entry><title>Comment on Ignore Directories in mod_rewrite</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/" /><summary type="text">Comment by SEO ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;I'm desperately trying to find a .htaccess for rewriting sub directory to subdomain. For instance,&lt;br /&gt;&lt;br /&gt;http://www.domain.com/gardening/roses.html&lt;br /&gt;&lt;br /&gt;to&lt;br /&gt;&lt;br /&gt;http://roses-gardening.domain.com&lt;br /&gt;&lt;br /&gt;Is it possible? I've got wildcard subdomains enabled, i'll check back.&lt;br /&gt;&lt;br /&gt;It's for http://www.articlesdb.net&lt;br /&gt;&lt;br /&gt;Thanks</summary><id>tag:addedbytes.com,2007:34144</id><published>2007-05-29T20:30:23+01:00</published><updated>2007-05-29T20:30:23Z</updated></entry><entry><title>Comment on Ignore Directories in mod_rewrite</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/" /><summary type="text">Comment by Vincent Bray ( &lt;a href="http://freenode.org/#apache"&gt;http://freenode.org/#apache&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Note that in addition to the RewriteCond solutions listed above, the %{REQUEST_FILENAME} variable is context sensitive.&lt;br /&gt;In a &lt;Directory /doc/root&gt; stanza or a .htaccess file it'll work fine, but in &lt;VirtualHost&gt; %{REQUEST_FILENAME} = %{REQUEST_URI}.&lt;br /&gt;&lt;br /&gt;noodl</summary><id>tag:addedbytes.com,2006:9105</id><published>2006-05-23T14:47:23+01:00</published><updated>2006-05-23T14:47:23Z</updated></entry><entry><title>Comment on Ignore Directories in mod_rewrite</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/" /><summary type="text">Comment by Karl ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;WordPress gives this to use&lt;br /&gt;&lt;IfModule mod_rewrite.c&gt;&lt;br /&gt;RewriteEngine On&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;RewriteRule . /index.php [L]&lt;br /&gt;&lt;/IfModule&gt;&lt;br /&gt;&lt;br /&gt;And I can't access my script in cgi-bin because of it, and  anything I have tried from here has not worked, and even made my blog break down in most cases.</summary><id>tag:addedbytes.com,2006:8832</id><published>2006-05-11T01:10:58+01:00</published><updated>2006-05-11T01:10:58Z</updated></entry><entry><title>Comment on Ignore Directories in mod_rewrite</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/" /><summary type="text">Comment by Mark Kenny ( &lt;a href="http://beingmrkenny.co.uk/"&gt;http://beingmrkenny.co.uk/&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Could you put the folder names in just one rule?&lt;br /&gt;&lt;br /&gt;RewriteRule ^(folder_name|folder2|folder3)/.*$ - [PT]&lt;br /&gt;&lt;br /&gt;Or would that introduce performance problems?</summary><id>tag:addedbytes.com,2006:6865</id><published>2006-04-23T21:57:31+01:00</published><updated>2006-04-23T21:57:31Z</updated></entry><entry><title>Comment on Ignore Directories in mod_rewrite</title><link rel="alternate" type="text/html" href="http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/" /><summary type="text">Comment by Fajita ( &lt;a href="http://www.timmyandtimmy.com"&gt;http://www.timmyandtimmy.com&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;that pass through rewrite rule just saved me from another 30 minutes of trial and error testing.&lt;br /&gt;&lt;br /&gt;I was doing something similar with the -d, but I didn't have a -f, that probably would have fixed it for me.&lt;br /&gt;&lt;br /&gt;Oh well, this pass through option helped, becuase i think i am only going to have a handful of files that i want to passthrough and not the whole directory.</summary><id>tag:addedbytes.com,2006:6098</id><published>2006-03-24T18:21:23+00:00</published><updated>2006-03-24T18:21:23Z</updated></entry></feed>