全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 4783|回复: 1
打印 上一主题 下一主题

GoDaddy内建Word Press的静态规则httpd.ini

[复制链接]
跳转到指定楼层
1#
发表于 2008-5-6 13:52:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  1. [ISAPI_Rewrite]
  2. # Protect httpd.ini and httpd.parse.errors files
  3. # from accessing through HTTP

  4. # # 形式:/read-PostID.html
  5. # # 自定义链接 /read-%post_id%.html
  6. RewriteRule /Tags/(.*) /index\.php\?tag=$1
  7. RewriteRule /(about|contact|about-copyright|favor|archives|tags|sitemap|link) /index\.php\?pagename=$1
  8. RewriteRule /Category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2
  9. RewriteRule /Category/?(.*) /index\.php\?category_name=$1
  10. RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?author_name=$1&feed=$2
  11. RewriteRule /author/?(.*) /index\.php\?author_name=$1
  12. RewriteRule /rss.xml /wp-feed\.php/\?feed=rss2
  13. RewriteRule /feed/?$ /wp-feed\.php/\?feed=rss2
  14. RewriteRule /comments/feed/?$ /wp-feed\.php/\?feed=comments-rss2
  15. RewriteRule /read-([0-9]+).html /index\.php\?p=$1 [I]
  16. RewriteRule /page/(.*)/?s=(.*) /index\.php\?s=$2&paged=$1
  17. RewriteRule /page/(.*) /index\.php\?paged=$1
  18. RewriteRule /read-date/([0-9]{4})([0-9]{1,2})([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /index\.php\?year=$1&monthnum=$2&day=$3&name=$4&page=$5
  19. RewriteRule /read-date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4
  20. RewriteRule /read-date/([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3
  21. RewriteRule /read-([0-9]+).html/(feed|rdf|rss|rss2|atom) /index\.php\?feed=rss2&p=$1
  22. RewriteRule /read-([0-9]+).html/trackback /wp-trackback\.php\?p=$1
复制代码


将上面的保存为httpd.ini上传到WP所在的目录。  
自定义链接: /read-%post_id%.html
2#
 楼主| 发表于 2008-6-30 22:24:49 | 只看该作者
其实现在新版的wordpress不需要使用httpd.ini,godaddy的空间直接支持wp的.htaccess的,我已经使用过。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-1 04:49 , Processed in 0.055922 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表