宝塔面板教程:
其它参考教程:
第一步:
开启,路经:/system/config/config.php大概在40行,修改成如下 if (!-e $request_filename)
{
rewrite ^/(home|what|news|bbs)/(.*)html$ /$1/index.php?$2;
}
if (!-e $request_filename)
{
rewrite ^/(.+\.(html|xml|json|htm|php|jsp|asp|shtml))$ /index.php?$1 last;
}
location ~* /(session|log|cache|config|control|library)/.*$
{
deny all;
}
Apache规则:
只要上面的第一步开启即可,默认根目录下有.htaccess即可支持。