时间:2023-06-26 07:45:02 | 来源:网站运营
时间:2023-06-26 07:45:02 来源:网站运营
windows VPS中wordpress伪静态规则:为了让windows VPS的伪静态生效,需要提前准备wordpress的伪静态脚本httpd.ini文件。[ISAPI_Rewrite]保持文档后,把文档重新命名为httpd.ini,记得把扩展名.txt改成.ini
# 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]
关键词:静态,规则