[wp-hackers] Make WP permalinks ignore a directory?

DD32 wordpress at dd32.id.au
Fri Apr 4 22:53:43 GMT 2008


On Sat, 05 Apr 2008 09:37:22 +1100, Alex Hempton-Smith  
<hempsworth at googlemail.com> wrote:

> # BEGIN WordPress
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_URI} !^/forum
> RewriteRule . /index.php [L]
> </IfModule>
> # END WordPress
>None of them do the trick. It's strange, becuase it works fine when I  
> visit
> the root bbPress directory '/forum/', it's everything after that in the  
> URL
> that doesn't work.


Now, The reason why /forum/ works fine, is its a directory, You can see in  
the rules '!-f' & '!-d' that checks to see if the URL is NOT a file or  
folder. If its a file or folder then WP doesnt match it, and lets the  
server access the file/folder directly without cutting in.


More information about the wp-hackers mailing list