PDA

View Full Version : Better mod_rewrite compatibility


matt
10-25-2005, 05:31 PM
Many programs that use mod_rewrite (like WordPress) do the rules like this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php
</IfModule>

This works, but only if I comment out the IfModule lines. Should support for this be added since you're effectively support everything mod_rewrite does?

mistwang
10-25-2005, 10:45 PM
This works, but only if I comment out the IfModule lines. Should support for this be added since you're effectively support everything mod_rewrite does?
Really? Our current release should ignore <IfModule ...> and </IfModule> directives. :-) Can you please double check? Thanks!

matt
10-26-2005, 12:19 AM
I'll double-check the ifmodule line.