站长提示:PbootCMS因未知原因暂时无人维护更新,很多新手都莫名的中马,虽然按网上教程关闭了权限做了简单防护,也许你暂时没有发现问题,但风险依然存在,在选择他人网站模板的时候切勿盲目上线使用,本地调试检查无误后再上线,本站免费模板来自网络,删减了广告,并不代表完全可以商用,请自行检查其中图片、文字等信息是否包含版权等问题。 如有需要转移网站至wordpress的用户,可咨询客服,相比之下安全性更高。
pbootcms后台开启配置开关-如下图
查看服务器环境
Apache环境
<IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?p=$1 [QSA,PT,L] </IfModule>
Nginx环境
#规则适合PbootCMS V2.0+版本 location / { if (!-e $request_filename){ rewrite ^/(.*)$ /index.php?p=$1 last; } }
IIS环境
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="reIndex" stopProcessing="true"> <match url="^(.*)$" ignoreCase="true" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> </conditions> <action type="Rewrite" url="index.php?p={R:1}" appendQueryString="true" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。