win2003下WP博客实现伪静态

  • 3
  • 1,050 views
  • A+
所属分类:[网站建设]

    很早就想实现愚人笔记的伪静态了,一直没有好的办法,今天在小孙的博客找到了一段不错的伪静态规则,一实验果然成功了,在这里要谢谢小孙把这么好的资源共享给大家,我也借花献佛再与大家分享一下:

## 伪静态URL:http://www.yrnote.com/post/453.html ## ## 固定链接设置 – 自定义结构:/post/%post_id%.html ## [ISAPI_Rewrite] RewriteRule /post/tag/(.*) /index\.php\?tag=$1 RewriteRule /tag/(.*) /index\.php\?tag=$1 RewriteRule /(about|link|tags|sitemap) /index\.php\?pagename=$1 RewriteRule /post/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2 RewriteRule /post/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 /feed /index\.php/\?feed=rss2 RewriteRule /rss.xml /index\.php/\?feed=rss2 RewriteRule /comments/feed /index\.php/\?feed=comments-rss2 RewriteRule /([0-9]+)/?([0-9]+)?/?$ /index\.php\?p=$1&page=$2 RewriteRule /post/([0-9]+)/?([0-9]+)?/?$ /index\.php\?p=$1&page=$2 RewriteRule /post/([0-9]+).html /index\.php\?p=$1 [I] RewriteRule /page/(.*)/?s=(.*) /index\.php\?s=$2&paged=$1 RewriteRule /page/(.*) /index\.php\?paged=$1 RewriteRule /post/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 RewriteRule /post/date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4 RewriteRule /post/date/([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3 RewriteRule /post/([0-9]+).html/(feed|rdf|rss|rss2|atom) /index\.php\?feed=rss2&p=$1 RewriteRule /post/([0-9]+).html/trackback /wp-trackback\.php\?p=$1 # For file-based wordpress content (i.e. theme), admin, etc. RewriteRule /wp-(.*) /wp-$1 [L]

  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin
广告也精彩
avatar
广告也精彩

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:3   其中:访客  3   博主  0

    • avatar 柳州同城 0

      对为静态越来越糊涂了,不知道其为何物、为何一定要实现为静态。

      • avatar 栲栳岛旅游 1

        难得有沙发,抢着坐下再看。。。