源码为龙哥分享。这个程序本来是Apache环境搭建的,但是目前我已经转化为Nginx了,伪静态我发在下方
location /
{
if (-f $request_filename) {
break;
}
rewrite ^/(.*)$ /index.php?domain=$1 last;
}
IIS伪静态
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?domain=$1 [L]
本文共271字
发布于2020年9月24日 10:44:22