Home > Article > Backend Development > Please explain htaccess file
<code>RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php <IfModule mod_env.c> SetEnv SEO_SUPPORT 1 </IfModule></code>
I don’t understand, please explain
I found some articles myself:
http://www.cnblogs.com/hechun...
<code>RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php <IfModule mod_env.c> SetEnv SEO_SUPPORT 1 </IfModule></code>
I don’t understand, please explain
I found some articles myself:
http://www.cnblogs.com/hechun...
If the file requested in the URL does not exist and the folder does not exist, redirect to index.php
If apache loads the mod_env
module, set an environment variable SEO_SUPPORT
Generally write pseudo-static rules