
xiuno伪静态配置
apache
1. 在网站根目录创建文件 .htaccess,静态内容如下:
RewriteEngine on 配置 RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*?)([^/]*)$ $1index.php?$ 2 [QSA,PT,L] RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*?)([^/]*)$ $1index.php?$ 2 [QSA,PT,L] RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*?)([^/]*)$ $1index.php?$ 2 [QSA,PT,L] 3. 清理缓存
nginx
1. 在配置文件的server节点下新增如下内容 :
location / { try_files $uri $uri/ /index.php?$args; } location / { try_files $uri $uri/ /index.php?$args; } location / { try_files $uri $uri/ /index.php?$args; }
2. 修改conf/conf.php
,将url_rewrite_on 改成1
3. 清理缓存
内容看完了 © 版权声明 1:本网站名称:
蜡笔傻新2:本站永久网址:https://labishaxin.com/
3:本站部分内容收集于互联网
,静态如果有侵权内容
、配置请联系我们删除