韩国、日本、香港、美国CN2独立服务器与VPS主机租用! 2 0 0 5 - 2 0 2 3 十 七 年 I D C 行 业 服 务 (Q Q:278550633)

WP程序在windows主机下伪静态

[ISAPI_Rewrite]

# 3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files

# from accessing through HTTP

# wordpress 伪静态规则

# For tag(中文标签以及标签翻页的规则)

RewriteRule /tag/(.*)/page/(\d+)$ /index\.php\?tag=$1&paged=$2

RewriteRule /tag/(.+)$ /index\.php\?tag=$1

# For category(中文分类以及分类翻页的规则)

RewriteRule /category/(.*)/page/(\d+)$ /index\.php\?category_name=$1&paged=$2

RewriteRule /category/(.*) /index\.php\?category_name=$1

# For sitemapxml

RewriteRule /sitemap.xml /sitemap.xml [L]

RewriteRule /sitemap.html /sitemap.html [L]

RewriteRule /sitemap_baidu.xml /sitemap_baidu.xml [L]

RewriteRule /favicon.ico /favicon.ico [L]

# For file-based wordpress content (i.e. theme), admin, etc.

RewriteRule /wp-(.*) /wp-$1 [L]

# For normal wordpress content, via index.php

RewriteRule ^/$ /index.php [L]

RewriteRule /(.*) /index.php/$1 [L]

作者:safeidc 分类:Windows技术文档 浏览:1013 评论:0