是否隐藏前台网址中的index.php文件名: | 显示 隐藏 |
选择了隐藏以后提交后还是会变成显示
后台伪静态是:
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
这样设置的,
你这个是Nginx的伪静态设置,如果你安装的是nginx的程序,请你再看看是不是导航中出现的index.php,如果是的,请在菜单设置里去掉就行了。若是apache的,伪静态规则不是这个,请用下面代码替换。
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f # RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] </IfModule>