No mod_rewrite but WP works anyways. Why?
-
Scenario:
-I create a file with phpinfo(); in it.
-I scan for any references for mod_rewrite in the php info page
-I see nothing and this tells my that the module is not present. Or to see for yourself: https://www.dave-adams.me/checkversion.phpOutcome:
-WordPress works anyways.Why?
Upon inspection, WordPress creates or modifies the .htaccess file with something like:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressQuestion: is this how WordPress works around the fact that mod_rewrite is not present? Or am I completely wrong?
- The topic ‘No mod_rewrite but WP works anyways. Why?’ is closed to new replies.