安装
解压到站点根目录配置好伪静态即可,需 php 环境,无需 mysql
伪静态
Nginx
location /
{
if (-f $request_filename) {
break;
}
rewrite ^/(.*)$ /index.php?domain=$1 last;
}
Apache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?domain=$1 [L]
</IfModule>
使用可以直接输入域名或 IP 搜索,也可以像输入如下直接访问即可https://www.cunshao.com/a.com或者https://www.cunshao.com/1.1.1.1
© 版权声明
本站所发布的全部内容源于互联网搬运,请在下载后24小时内删除。如果有侵权之处请第一时间联系我们E-mail:86512@qq.com删除。敬请谅解!
THE END
暂无评论内容