wp博客我们怎么做才能实现其伪静态呢?想要wp博客支持伪静态其实很简单,在你的服务器支持的前提下仅仅需要两步就可实现。首先新建一个本本文档将以下代码粘贴进去:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# 中文tag解决
RewriteRule /tag/(.*) /index.php?tag=$1
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# Rules to ensure that normal content gets through
RewriteRule /robots.txt /robots.txt [L]
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]
RewriteRule /readme.html /readme.html [L]
RewriteRule /logo.jpg /logo.jpg [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]
然后把该文本文档改名为httpd.ini然后用FTP工具将该文档上传到你的网站根目录下,然后进入网站后台找到:设置—固定连接,建议把固定连接格式设置为/%post_id%.html。通过以上两步也就完成了博客页面伪静态的全部步骤了。怎么样,没你想象的那么难吧,赶快自己动手试试吧!