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

Alex Hempton-Smith hempsworth at googlemail.com
Fri Apr 4 22:37:22 GMT 2008


Thanks for the replies everyone, but I can't seem to get it working!

I've tried the following setups as recommended:

RewriteRule ^forum/.* - [L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^forum/.* - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

# 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.


More information about the wp-hackers mailing list