壹佰智慧轻站6.0
让建站变得更简单
1. 宝塔软件商店 确认站点所使用PHP 版本 设置->FPM配置文件 添加信息如下:
security.limit_extensions = .php .php3 .php4 .php5 .php7 .html .htm
2. 进入站点列表,找到需要设置伪静态的站点,点击域名或设置,切换到【配置文件】在最下面一个}的上面添加(本文以PHP7.2为例):
location ~ [^/]\.html(/|$)
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi-72.sock;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
}
其中php-cgi-72.sock里面的72 要替换成此站点使用的php版本
3. 站点打包时, 选择自定义文件后缀名, 设置后缀名为 .html. 然后打包即可