道招

配置IIS的win主机下wordpress的伪静态rewrite规则

如果您发现本文排版有问题,可以先点击下面的链接切换至老版进行查看!!!

配置IIS的win主机下wordpress的伪静态rewrite规则

于2011.8.28更新 [ISAPI_Rewrite] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 #默认包含了301设置,此设置情况下www.daozhao.com/aa.htm 会301跳至daozhao.com/aa.htm,将www.daozhao.com替换为您自己的域名就能实现自己的域名的301 RewriteCond %{HTTP:Host} ^www.daozhao.com$ RewriteRule (.*) https://www.daozhao.com$1 [NC,R=301] #Wordpress # # 形式:/PostID.html # # 自定义链接 /%post_id%.html #RewriteRule /(about|contact|about-copyright|favor|archives|tags|sitemap|taotao) /index\.php\?pagename=$1 RewriteRule /category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2 RewriteRule /category/(.*)/page/(.*) /index\.php\?category_name=$1&paged=$2 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 /comments/feed/?$ /index.php?feed=comments-rss2 RewriteRule /comments/feed/?$ /wp-feed\.php/\?feed=comments-rss2 # RewriteRule /([0-9]+)/?([0-9]+)?/?$ /index\.php\?p=$1&page=$2 # RewriteRule /([0-9]+)/?([0-9]+)?/?$ /index\.php\?p=$1&page=$2 RewriteRule /([0-9]+).html /index\.php\?p=$1 RewriteRule /page/(.*)/?s=(.*) /index\.php\?s=$2&paged=$1 RewriteRule /page/(.*) /index\.php\?paged=$1 RewriteRule /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 /date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4 RewriteRule /date/([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3 RewriteRule /([0-9]+).html/(feed|rdf|rss|rss2|atom) /index\.php\?feed=rss2&p=$1 RewriteRule /([0-9]+).html/trackback /wp-trackback\.php\?p=$1 RewriteRule /dz/(.*) /dz/$1 [L] RewriteRule /sitemap.xml /sitemap.xml [L] RewriteRule /sitemap.html /sitemap.html [L] RewriteRule /favicon.ico /favicon.ico [L] RewriteRule /wp-(.*) /wp-$1 [L] #RewriteRule ^/$ /index.php [L] RewriteRule /(.*) /index.php/$1 [L]
更新时间:
上一篇:超级QQ买3赠1 最高还送90成长值——限时15天火爆进行中下一篇:wordpress插入代码插件

相关文章

wordpress win IIS伪静态规则

使用的固定链接格式是: /%postname%.html 用别名做url有利于seo #Wordpress RewriteRule /tag/(.*) /index.php?tag=$1 阅读更多…

解决本站wordpress中文标签tag无法打开、无法伪静态问题

将本站的isapi rewirte用的httpd.ini 公布如下 #Wordpress # # 形式:/PostID.html# # 自定义链接 /%post_id%.html(本站使用的 阅读更多…

关注道招网公众帐号
道招开发者二群