<?xml version="1.0"?><rss version="2.0"><channel><title>Comments on Ignore Directories in mod_rewrite - AddedBytes.com</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/</link><description>Latest comments on Ignore Directories in mod_rewrite on AddedBytes.com</description><!-- ckey="76C662BB" --><item><title>Comment on Ignore Directories in mod_rewrite</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</link><guid>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</guid><description>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;
</description></item><item><title>Comment on Ignore Directories in mod_rewrite</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</link><guid>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</guid><description>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/</description></item><item><title>Comment on Ignore Directories in mod_rewrite</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</link><guid>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</guid><description>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?</description></item><item><title>Comment on Ignore Directories in mod_rewrite</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</link><guid>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</guid><description>Comment by Jon ( &lt;a href=""&gt;&lt;/a&gt; )&lt;br /&gt;&lt;br /&gt;Thanks trifid, this code works perfectly.</description></item><item><title>Comment on Ignore Directories in mod_rewrite</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</link><guid>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</guid><description>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]</description></item><item><title>Comment on Ignore Directories in mod_rewrite</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</link><guid>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</guid><description>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</description></item><item><title>Comment on Ignore Directories in mod_rewrite</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</link><guid>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</guid><description>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</description></item><item><title>Comment on Ignore Directories in mod_rewrite</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</link><guid>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</guid><description>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.</description></item><item><title>Comment on Ignore Directories in mod_rewrite</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</link><guid>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</guid><description>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?</description></item><item><title>Comment on Ignore Directories in mod_rewrite</title><link>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</link><guid>http://www.addedbytes.com/article/ignore-directories-in-mod-rewrite/comments/</guid><description>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.</description></item></channel></rss>