Wordpress伪静态规则,Win+II6+PHP环境完美解决方案

间隙填充
正睿科技  发布时间:2024-05-07 11:11:29  浏览数:305

关于正睿.png

Wordpress伪静态规则,Win+II6+PHP环境完美解决方案

Windows环境下WordPress伪静态规则文件内容如下:


[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP

# -------------在此行以下添加伪静态规则------------

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 /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]

问题没解决? 我们帮您!

如果您在本文中未能找到解决当前问题的办法,不用担心——正睿专业技术支持团队随时待命

服务项目.png

获取更多帮助