mod_rewrite htaccess MYSTERY…
-
I’m hoping somebody with a better understanding of mod_rewrite may be able to help me figure out what is going on with my “Pretty Permalinks”. (I have wordpress installed in a directory “wordpress” instead of root.)
I’ve followed many different threads trying to fix it. I changed my .htaccess file to:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPressBut, it still wasn’t working. So I tried commenting out the <IfModule lines like so:
# BEGIN WordPress
#<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
#</IfModule>
# END WordPressAnd now “Pretty Permalinks” are working on my site. Can anyone explain to me why taking out the <IfModule lines fixed the problem?? I’d just like to understand.
Thanks.
- The topic ‘mod_rewrite htaccess MYSTERY…’ is closed to new replies.