Home  >  Article  >  Backend Development  >  Please explain htaccess file

Please explain htaccess file

WBOY
WBOYOriginal
2016-08-25 10:37:32986browse

<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...

Reply content:

<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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn