全球主机交流论坛

标题: GoDaddy内建Word Press的静态规则httpd.ini [打印本页]

作者: cpuer    时间: 2008-5-6 13:52
标题: GoDaddy内建Word Press的静态规则httpd.ini
  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
作者: cpuer    时间: 2008-6-30 22:24
其实现在新版的wordpress不需要使用httpd.ini,godaddy的空间直接支持wp的.htaccess的,我已经使用过。




欢迎光临 全球主机交流论坛 (https://www.91ai.net/) Powered by Discuz! X3.4