您现在的位置是:首页 > 教程 > pbootcms教程pbootcms教程

pbootcms伪静态设置教程含apache、naginx、IIS不同环境配置规则

怜蕾2025-03-31 16:41:53pbootcms教程已有8人查阅

导读其实pbootcms伪静态已经整理好, 在根目录就可以找到作为使用者, 只需要根据不同的服务器环境, 使用不同格式的数据就行。naginx#请复制下面伪静态配置到nginx配置文件中:#规则

其实pbootcms伪静态已经整理好, 在根目录就可以找到作为使用者, 只需要根据不同的服务器环境, 使用不同格式的数据就行。
naginx#请复制下面伪静态配置到nginx配置文件中:
#规则适合PbootCMS V2.0+版本
location / {
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?p=$1 last;
}
}
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>
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>
如果自己不懂配置, 建议寻找技术支持。

本文标签:

很赞哦! (0)

暂无内容
暂无内容
暂无内容
暂无内容
留言与评论 (共有 0 条评论)
昵称:
匿名发表 登录账号
         
验证码:
    暂无内容
    暂无内容

相关标签

    暂无内容