Home >Backend Development >PHP Tutorial >隐藏index.php的规则

隐藏index.php的规则

WBOY
WBOYOriginal
2016-06-23 14:28:48912browse

1 <IfModule mod_rewrite.c>2 RewriteEngine on3 RewriteCond %{REQUEST_FILENAME} !-d4 RewriteCond %{REQUEST_FILENAME} !-f5 RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]6 </IfModule>

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
Previous article:创建 PHP 测试页 ZTNext article:PHP文件操作类