Win空间上如何实现WordPress博客的完美伪静态 由于他们都是Win主机,而我们做WP博客的朋友都知道喜欢弄伪静态什么的。而Win空间要想完美支持伪静态可得大费周章,小冬亦是,找了不少的教程,自己也摸索了下,一个字累,还好最后搞定了. 网上的教程几乎都是博客链接能伪静态,可中文标签的链接打不开,出现404错误页。而下面介绍的方法则是非常完美的。 下面就说说如何完美实现WP博客的伪静态: 1、写httpd.ini (用记事本即可,写好后放在根目录下OK) [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 throughRewriteRule /software-files/(.*) /software-files/$1 [L, RewriteRule /images/(.*) /images/$1 [L, 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.ph...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|