PHPCMS V9在Apache、Nginx、IIS各个web服务器下的Rewrite伪静态规则 -云主机博士

PHPCMS V9在Apache、Nginx、IIS各个web服务器下的Rewrite伪静态规则 -云主机博士 第1张

在看完PHPCMS V9静态化HTML生成设置及URL规则优化之后,发现有不少朋友在搜索寻找Phpcms V9在Apache、Nginx、IIS伪静态规则,于是搜集分享在此!

PHPCMS V9 伪静态规则 for Apache:

RewriteEngine on
RewriteBase / //如果安装在子目录需要制定RewriteBase
RewriteRule ^content_([0-9]+)_([0-9]+)_([0-9]+).html index.php?m=content&c=index&a=show&catid=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 1&̲id=2&page=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 59: ….php?m=announce&̲c=index&a=show&…1
RewriteRule ^link.html index.php?m=link
RewriteRule ^link_type_([0-9,a-z]*).html index.php?m=link&c=index&a=list_type&type_id=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 1&̲siteid=2
RewriteRule ^rss.html index.php?m=content&c=rss&siteid=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 62: …x.php?m=content&̲c=tag&catid=1&tag=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 48: …x.php?m=special&̲c=index&a=speci…1
RewriteRule ^special_([0-9,a-z]*).html index.php?m=special&c=index&id=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 74: …x.php?m=special&̲c=index&a=type&…1&typeid=$2

PHPCMS V9在Rewrite伪静态Nginx规则【2014年6月14日更新规则】:

location / {
if (!-f ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 115: …x.php?m=content&̲c=index&a=show&…1&id=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲page=3 last;
rewrite ^/content-([0-9]+)-([0-9]+)-([0-9]+).html /index.php?m=content&c=index&a=show&catid=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 1&̲id=2&page=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 67: …x.php?m=content&̲c=index&a=lists…1&page=ParseError: KaTeX parse error: Got function '\.' with no arguments as superscript at position 27: …rite ^/tags/([^\̲.̲]*)-([0-9]+).ht…1&page=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 79: …x.php?m=comment&̲c=index&a=init&…1-2-3 last;
rewrite ^/([^\.]*).html /index.php?m=member&c=index&a=$1 last;
}

<strong>相关热词搜索:</strong>{loop keywordskeywordskeyword}<a href="{APP_PATH}tags/{urlencode(ParseError: KaTeX parse error: Expected 'EOF', got '}' at position 9: keyword)}̲-1.html" target…keyword}</a>{/loop}

PHPCMS V9伪静态规则 win下IIS完美设置:

新建一个记事本文件,将文件名改为:httpd.ini。再将以下代码粘贴进去:

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteEngine on
RewriteRule ^(.*)content-([0-9]+)-([0-9]+)-([0-9]+)\.html1/index\.php\?m=content&c=index&a=show&catid=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲id=3&page=4 RewriteRule ^(.*)show-([0-9]+)-([0-9]+)-([0-9]+).html ParseError: KaTeX parse error: Can't use function '\.' in math mode at position 8: 1/index\̲.̲php\?m=content&…2&id=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 3&̲page=4
RewriteRule ^(.*)list-([0-9]+)-([0-9]+).html1/index\.php\?m=content&c=index&a=lists&catid=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲page=3

PHPCMS V9分类信息列表页在IIS6 伪静态规则:

RewriteRule /list-(d+)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).html /index.php?m=content&c=index&a=lists&catid=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 1&̲city=2&agent=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 3&̲bedroom=4&objecttype=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 5&̲pay_type_int=6&price=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 7&̲rent_mode=8&zone=ParseError: KaTeX parse error: Expected 'EOF', got '&' at position 2: 9&̲page=10

宝塔服务器面板,一键全能部署及管理,送你3188元礼包,点我领取


iproyal.png
原文链接:,转发请注明来源!
「PHPCMS V9在Apache、Nginx、IIS各个web服务器下的Rewrite伪静态规则 -云主机博士」评论列表

发表评论