Home > Backend Development > PHP Tutorial > Please explain htaccess file

Please explain htaccess file

WBOY
Release: 2016-08-25 10:37:32
Original
1018 people have browsed it

<code>RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
<IfModule mod_env.c>
    SetEnv SEO_SUPPORT 1
</IfModule></code>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template