xiuno bbs 伪静态

apache

<IfModule mod_rewrite.c>
RewriteEngine onng
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^(.*?)([^/]*)$ $1index.php?$2[QSA,PT,L]
</IfModule>

nginx

location ~* \.(htm)$ {
       rewrite "^(.*)/(.+?).htm(.*?)$" $1/index.php?$2.htm$3 last;
    }

修改conf/conf.php,将url_rewrite_on 改成1

参考:http://static.iqismart.com/thread-451.htm

THE END
分享
二维码
< <上一篇
下一篇>>