本博客系宁波SEO联盟资深成员 seolm.org
« »
2010年02月28日技术文章

2,779 views

wordpress伪静态与去掉index.php修改方法

没有官方的代码。不完美,寻找中。

2010-2-28 2.9版本,测试成功。

[ISAPI_Rewrite]
# Defend your computer from some worm attacks
#RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]
# 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 /tag/(.*) /index\.php\?tag=$1
RewriteRule /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.php/$1 [L]

上面的代码使用后,tag页面不正常。因为编码问题。

解决办法见:wordpress伪静态后包含中文词的url显示找不到内容(解决方法)

日志信息 »

该日志于2010-02-28 08:00由 王今古 发表在技术文章分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

相关日志 »

随机日志

没有评论

发表评论 »

*

这里显示评论者的最新博文~
返回顶部