WeCenter整理最新伪静态大全,包括伪静态.htaccesse、web.config、httpd.ini三种伪静态规则写法。
WeCenter 3.1.9伪静态规则分别如下:
.htaccesse伪静态规则代码:
RewriteEngine on
RewriteCond $1 !^(index\.php|static|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteRule ^(.*)aws_external/(.*)$ ?/aws_external/$1 [L]
RewriteRule ^(.*)topic/(.*)$ ?/topic/$1 [L]
RewriteRule ^(.*)article/(.*)$ ?/html/$1 [L]
RewriteRule ^(.*)upgrade/(.*)$ ?/upgrade/$1 [L]
RewriteRule ^(.*)page/(.*)$ ?/page/$1 [L]
RewriteRule ^(.*)users/(.*)$ ?/users/$1 [L]
RewriteRule ^(.*)favorite/(.*)$ ?/favorite/$1 [L]
RewriteRule ^(.*)explore/(.*)$ ?/explore/$1 [L]
RewriteRule ^(.*)notifications/(.*)$ ?/notifications/$1 [L]
RewriteRule ^(.*)inbox/(.*)$ ?/inbox/$1 [L]
RewriteRule ^(.*)people/(.*)$ ?/people/$1 [L]
RewriteRule ^(.*)setting/(.*)$ ?/setting/$1 [L]
RewriteRule ^(.*)logout/(.*)$ ?/logout/$1 [L]
RewriteRule ^(.*)publish/(.*)$ ?/publish/$1 [L]
RewriteRule ^(.*)feature/(.*)$ ?/feature/$1 [L]
RewriteRule ^(.*)home/(.*)$ ?/home/$1 [L]
RewriteRule ^(.*)file/(.*)$ ?/file/$1 [L]
RewriteRule ^(.*)account/(.*)$ ?/account/$1 [L]
RewriteRule ^(.*)login/(.*)$ ?/login/$1 [L]
RewriteRule ^(.*)reader/(.*)$ ?/reader/$1 [L]
RewriteRule ^(.*)search/(.*)$ ?/search/$1 [L]
RewriteRule ^(.*)crond/(.*)$ ?/crond/$1 [L]
RewriteRule ^(.*)invitation/(.*)$ ?/invitation/$1 [L]
RewriteRule ^(.*)admin/(.*)$ ?/admin/$1 [L]
RewriteRule ^(.*)m/(.*)$ ?/m/$1 [L]
RewriteRule ^(.*)question/(.*)$ ?/question/$1 [L]
RewriteRule ^(.*)category/(.*)$ ?/home/explore/category/$1 [L]
RewriteRule ^(.*)feed/(.*)$ ?/feed/$1 [L]
RewriteRule ^(.*)first_(.*)$ ?/first_(.*)/$1 [L]
RewriteRule ^(.*)follow/(.*)$ ?/follow/$1 [L]
RewriteRule ^(.*)weixin/(.*)$ ?/weixin/$1 [L]
RewriteRule ^(.*)help/(.*)$ ?/help/$1 [L]
RewriteRule ^(.*)sort_type-unresponsive ?/sort_type-unresponsive [L]
RewriteRule ^(.*)sort_type-hot__day-7 ?/sort_type-hot__day-7 [L]
RewriteRule ^(.*)is_recommend-1 ?/is_recommend-1 [L]
RewriteRule ^(.*)sort_type-new ?/sort_type-new [L]
RewriteRule ^(.*)music/(.*)$ ?/music/$1 [L]
RewriteRule ^(.*)pinglun/(.*)$ ?/pinglun/$1 [L]
RewriteRule ^(.*)ticket/(.*)$ ?/ticket/$1 [L]
RewriteRule ^(.*)project/(.*)$ ?/project/$1 [L]
RewriteRule ^(.*)dashiji/(.*)$ ?/dashiji/$1 [L]
RewriteRule ^(.*)account/captcha/(.*)$ ?/account/captcha/$1 [L]
RewriteRule ^(.*)day-(.*)__is_recommend-(.*)__page-(.*)$ ?/day-$1__is_recommend-$2__page-$3 [L]
RewriteRule ^(.*)sort_type-(.*)__day-(.*)__is_recommend-(.*)__page-(.*)$ ?/sort_type-$1__day-$2__is_recommend-$3__page-$4 [L]
RewriteRule ^(.*)sort_type-(.*)____day-(.*)$ ?/sort_type-$1____day-$2 [L]
RewriteRule ^(.*)day-(.*)__is_recommend-(.*)$ ?/day-$1__is_recommend-$2 [L]
RewriteRule ^(.*)sort_type-(.*)__day-(.*)__is_recommend-(.*)$ ?/sort_type-$1__day-$2__is_recommend-$3 [L]
web.config伪静态规则代码(以下代码仅为伪静态具体规则代码):
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^$" ignoreCase="false" />
<action type="Rewrite" url="/?" appendQueryString="false" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^aws_external/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/aws_external/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^topic/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/topic/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 4" stopProcessing="true">
<match url="^article/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/html/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 5" stopProcessing="true">
<match url="^upgrade/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/upgrade/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 6" stopProcessing="true">
<match url="^page/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/page/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 7" stopProcessing="true">
<match url="^users/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/users/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 8" stopProcessing="true">
<match url="^favorite/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/favorite/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 9" stopProcessing="true">
<match url="^explore/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/explore/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 10" stopProcessing="true">
<match url="^notifications/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/notifications/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 11" stopProcessing="true">
<match url="^inbox/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/inbox/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 12" stopProcessing="true">
<match url="^people/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/people/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 13" stopProcessing="true">
<match url="^setting/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/setting/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 14" stopProcessing="true">
<match url="^logout/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/logout/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 15" stopProcessing="true">
<match url="^publish/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/publish/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 16" stopProcessing="true">
<match url="^feature/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/feature/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 17" stopProcessing="true">
<match url="^home/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/home/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 18" stopProcessing="true">
<match url="^file/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/file/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 19" stopProcessing="true">
<match url="^account/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/account/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 20" stopProcessing="true">
<match url="^login/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/login/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 21" stopProcessing="true">
<match url="^reader/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/reader/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 22" stopProcessing="true">
<match url="^search/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/search/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 23" stopProcessing="true">
<match url="^crond/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/crond/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 24" stopProcessing="true">
<match url="^invitation/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/invitation/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 25" stopProcessing="true">
<match url="^admin/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/admin/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 26" stopProcessing="true">
<match url="^m/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/m/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 27" stopProcessing="true">
<match url="^question/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/question/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 28" stopProcessing="true">
<match url="^category/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/home/explore/category/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 29" stopProcessing="true">
<match url="^feed/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/feed/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 30" stopProcessing="true">
<match url="^first_(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/first_(.*)/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 31" stopProcessing="true">
<match url="^follow/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/follow/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 32" stopProcessing="true">
<match url="^weixin/(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/weixin/{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 33" stopProcessing="true">
<match url="^is_recommend-(.*)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/is_recommend-{R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 34" stopProcessing="true">
<match url="^sort_type-hot__(.*)-([0-9]+)$" ignoreCase="false" />
<action type="Rewrite" url="/\?\/sort_type-hot__{R:1}-{R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 35" stopProcessing="true">
<match url="^sort_type-unresponsive" ignoreCase="false" />
<action type="Rewrite" url="/\?\/sort_type-unresponsive" appendQueryString="false" />
</rule>
</rules>
</rewrite>
httpd.ini伪静态规则代码(httpd.ini文件内所有代码):
[ISAPI_Rewrite]3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule ^/$ /? [L]
RewriteRule ^/aws_external/(.*)$ /\?\/aws_external/$1 [L]
RewriteRule ^/topic/(.*)$ /\?\/topic/$1 [L]
RewriteRule ^/html/(.*)$ /\?\/html/$1 [L]
RewriteRule ^/upgrade/(.*)$ /\?\/upgrade/$1 [L]
RewriteRule ^/page/(.*)$ /\?\/page/$1 [L]
RewriteRule ^/users/(.*)$ /\?\/users/$1 [L]
RewriteRule ^/favorite/(.*)$ /\?\/favorite/$1 [L]
RewriteRule ^/explore/(.*)$ /\?\/explore/$1 [L]
RewriteRule ^/notifications/(.*)$ /\?\/notifications/$1 [L]
RewriteRule ^/inbox/(.*)$ /\?\/inbox/$1 [L]
RewriteRule ^/people/(.*)$ /\?\/people/$1 [L]
RewriteRule ^/setting/(.*)$ /\?\/setting/$1 [L]
RewriteRule ^/logout/(.*)$ /\?\/logout/$1 [L]
RewriteRule ^/publish/(.*)$ /\?\/publish/$1 [L]
RewriteRule ^/feature/(.*)$ /\?\/feature/$1 [L]
RewriteRule ^/home/(.*)$ /\?\/home/$1 [L]
RewriteRule ^/file/(.*)$ /\?\/file/$1 [L]
RewriteRule ^/account/(.*)$ /\?\/account/$1 [L]
RewriteRule ^/login/(.*)$ /\?\/login/$1 [L]
RewriteRule ^/reader/(.*)$ /\?\/reader/$1 [L]
RewriteRule ^/search/(.*)$ /\?\/search/$1 [L]
RewriteRule ^/crond/(.*)$ /\?\/crond/$1 [L]
RewriteRule ^/invitation/(.*)$ /\?\/invitation/$1 [L]
RewriteRule ^/admin/(.*)$ /\?\/admin/$1 [L]
RewriteRule ^/m/(.*)$ /\?\/m/$1 [L]
RewriteRule ^/question/(.*)$ /\?\/question/$1 [L]
RewriteRule ^/category/(.*)$ /\?\/home/explore/category/$1 [L]
RewriteRule ^/feed/(.*)$ /\?\/feed/$1 [L]
RewriteRule ^/first_(.*)$ /\?\/first_(.*)/$1 [L]
RewriteRule ^/follow/(.*)$ /\?\/follow/$1 [L]
RewriteRule ^/weixin/(.*)$ /\?\/weixin/$1 [L]
RewriteRule ^/help/(.*)$ /\?\/help/$1 [L]
RewriteRule ^/sort_type-unresponsive /\?\/sort_type-unresponsive [L]
RewriteRule ^/sort_type-hot__day-7 /\?\/sort_type-hot__day-7 [L]
RewriteRule ^/is_recommend-1 /\?\/is_recommend-1 [L]
RewriteRule ^/sort_type-new /\?\/sort_type-new [L]
RewriteRule ^/music/(.*)$ /\?\/music/$1 [L]
RewriteRule ^/pinglun/(.*)$ /\?\/pinglun/$1 [L]
RewriteRule ^/ticket/(.*)$ /\?\/ticket/$1 [L]
RewriteRule ^/project/(.*)$ /\?\/project/$1 [L]
RewriteRule ^/dashiji/(.*)$ /\?\/dashiji/$1 [L]
RewriteRule ^/account/captcha/(.*)$ /\?\/account/captcha/$1 [L]
RewriteRule ^/day-(.*)__is_recommend-(.*)__page-(.*)$ /\?\/day-$1__is_recommend-$2__page-$3 [L]
RewriteRule ^/sort_type-(.*)__day-(.*)__is_recommend-(.*)__page-(.*)$ /\?\/sort_type-$1__day-$2__is_recommend-$3__page-$4 [L]
RewriteRule ^/sort_type-(.*)____day-(.*)$ /\?\/sort_type-$1____day-$2 [L]
RewriteRule ^/day-(.*)__is_recommend-(.*)$ /\?\/day-$1__is_recommend-$2 [L]
RewriteRule ^/sort_type-(.*)__day-(.*)__is_recommend-(.*)$ /\?\/sort_type-$1__day-$2__is_recommend-$3 [L]
相关文章:
《wecenter话题伪静态失效》
《wecenter伪静态官方简洁版》
WeCenter下载