#如果存在rewrite_module 模块则执行里面的代码#开启重写机制 RewriteEngine On #告诉apache这里不是文件 RewriteCond %{REQUEST_FILENAME} !-f #告诉apache这里不是目录 RewriteCond %{REQUEST_FILENAME} !-d #重写规则就是匹配 index.php后面的参数,参数前面加上index.php/ RewriteRule (.*) index.php/$1
本文共 274 字,大约阅读时间需要 1 分钟。
#如果存在rewrite_module 模块则执行里面的代码#开启重写机制 RewriteEngine On #告诉apache这里不是文件 RewriteCond %{REQUEST_FILENAME} !-f #告诉apache这里不是目录 RewriteCond %{REQUEST_FILENAME} !-d #重写规则就是匹配 index.php后面的参数,参数前面加上index.php/ RewriteRule (.*) index.php/$1
转载地址:http://eoegl.baihongyu.com/