欢迎
1
说明
2
环境
3
配置
4
保存
5
建表
6
完成

搭建说明

重要:请先配置伪静态
系统依赖 URL 重写才能正常访问后台与用户中心。请按下方检测到的 Web 服务器完成配置后再继续安装。
伪静态配置 检测到:Nginx · nginx/1.31.2
location / {
	if (!-e $request_filename){
		rewrite  ^(.*)$  /index.php?s=$1  last;   break;
	}
}
location ^~ /protected {
	deny all;
}
location ~ ^/(Assets|Template)/ {
	try_files $uri $uri/ /index.php?$request_uri;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$ {
	expires 3d;
}

将以上规则写入站点 Nginx 配置的 server { } 内,然后执行 nginx -t 并重载。

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?s=$1 [L]
    RewriteRule ^protected/ - [F,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(Assets|Template)/.*$ /index.php?%{REQUEST_URI} [L,QSA]
</IfModule>

将以上规则写入网站根目录 .htaccess(需开启 mod_rewrite 并允许 Override)。