Home  >  Article  >  Backend Development  >  .htaccess 有关问题

.htaccess 有关问题

WBOY
WBOYOriginal
2016-06-13 13:41:01800browse

.htaccess 问题
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

求着4行功能解释

------解决方案--------------------
RewriteCond %{REQUEST_FILENAME} !-f
如果文件存在,就直接访问文件,不进行下面的RewriteRule.
RewriteCond %{REQUEST_FILENAME} !-d
如果目录存在就直接访问目录不进行RewriteRule

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