GoDaddy内建Word Press的静态规则httpd.ini
[*][*]# Protect httpd.ini and httpd.parse.errors files
[*]# from accessing through HTTP
[*]
[*]# # 形式:/read-PostID.html
[*]# # 自定义链接 /read-%post_id%.html
[*]RewriteRule /Tags/(.*) /index\.php\?tag=$1
[*]RewriteRule /(about|contact|about-copyright|favor|archives|tags|sitemap|link) /index\.php\?pagename=$1
[*]RewriteRule /Category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2
[*]RewriteRule /Category/?(.*) /index\.php\?category_name=$1
[*]RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?author_name=$1&feed=$2
[*]RewriteRule /author/?(.*) /index\.php\?author_name=$1
[*]RewriteRule /rss.xml /wp-feed\.php/\?feed=rss2
[*]RewriteRule /feed/?$ /wp-feed\.php/\?feed=rss2
[*]RewriteRule /comments/feed/?$ /wp-feed\.php/\?feed=comments-rss2
[*]RewriteRule /read-(+).html /index\.php\?p=$1
[*]RewriteRule /page/(.*)/?s=(.*) /index\.php\?s=$2&paged=$1
[*]RewriteRule /page/(.*) /index\.php\?paged=$1
[*]RewriteRule /read-date/({4})({1,2})({1,2})/([^/]+)/?(+)?/?$ /index\.php\?year=$1&monthnum=$2&day=$3&name=$4&page=$5
[*]RewriteRule /read-date/({4})/({1,2})/({1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4
[*]RewriteRule /read-date/({4})/({1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3
[*]RewriteRule /read-(+).html/(feed|rdf|rss|rss2|atom) /index\.php\?feed=rss2&p=$1
[*]RewriteRule /read-(+).html/trackback /wp-trackback\.php\?p=$1复制代码
将上面的保存为httpd.ini上传到WP所在的目录。
自定义链接: /read-%post_id%.html 其实现在新版的wordpress不需要使用httpd.ini,godaddy的空间直接支持wp的.htaccess的,我已经使用过。
static/image/smiley/default/lol.gif
页:
[1]