wordpress如何设置伪静态
时间:
阅读:356
wordpress如何设置伪静态
最佳回答
你好,设置方法如下:
用下面这个试试:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
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]
用下面这个试试:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
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]
最新回答共有4条回答
-
游客
回复1、首先登陆你的wordpress网站后台,默认后台路径为:www.域名.com./wp-admin
2、登陆到wordpress后台,点击左侧的设置——固定链接
3、选择“自定义结构”,输入伪静态规则代码。这里提供了2种方式供你参考:/%post_id%.html /%postname%.html
4、设置保存后,可打开内页任意一篇文章,查看是否设置成功。