Mod rewrite Concrete5中漂亮URL的mod_重写规则
Concrete5提供此配置转储以在所有URL的开头插入省略的“index.php/”:Mod rewrite Concrete5中漂亮URL的mod_重写规则,mod-rewrite,concrete5-8.x,Mod Rewrite,Concrete5 8.x,Concrete5提供此配置转储以在所有URL的开头插入省略的“index.php/”: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteCond %{REQUEST_FILENAME}/index.php !-f RewriteRule .
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
重新启动发动机
重写基/
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}/index.html-F
重写cond%{REQUEST_FILENAME}/index.php-F
重写规则。index.php[L]
但是重写规则
为什么起作用
http:///foo
==>
http:///index.php/foo