Home Turn mod_rewrite on twice?
Reply: 0

Turn mod_rewrite on twice?

foolstack Published in 2017-11-11 17:55:21Z

This code was in my WordPress .htaccess

<IfModule mod_rewrite.c>
**RewriteEngine On**
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Since RewriteEngine Onis already in the .htaccess file do I need to add it again for more redirects since it's in a closing </IfModule>? Why is this rewrite code enclosed in the </IfModule> anyway? Is it checking for the existance of mod_rewrite???

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.295753 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO