开发学院服务器WEB服务器IIS IIRF (Ionic’s Isapi Rewrite Filter), ISAPI Re... 阅读

IIRF (Ionic’s Isapi Rewrite Filter), ISAPI Rewrite 商业版的替代方案

 2011-03-10 23:11:46 来源:WEB开发网   
核心提示:六、附上wordpress的IIRF规则先到wordpress后台设置固定连接为:/post/%post_id%.html然后在wordpress所在网站的根目录创建(IIRF.ini)文件,并在文件中加入以下规则:RewriteLogLevel 0RewriteLog E:\flyingbluelogfilesIIR

六、附上wordpress的IIRF规则

先到wordpress后台设置固定连接为:/post/%post_id%.html
然后在wordpress所在网站的根目录创建(IIRF.ini)文件,并在文件中加入以下规则:

RewriteLogLevel 0

RewriteLog E:\flyingbluelogfilesIIRFLOGlog

StatusUrl iirfStatus

StatusInquiry ON

RewriteRule /index.html$ /index.php [L]

# # from accessing through HTTP

# # WordPress rewrite rules

# # Below is for permalink like /post/%post_id%.html

# # Provided By Sideblue

# # URL:http://ivup.cn

RewriteCond %{REQUEST_FILENAME} ^wp-content.*

RewriteCond %{REQUEST_FILENAME} ^wp-admin.*

RewriteCond %{REQUEST_FILENAME} ^wp-include.*

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule /post/tag/(.*) /index.php?tag=$1

RewriteRule /tag/(.*) /index.php?tag=$1

RewriteRule /(contact|about-copyright|favor|archives|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 /rss.xml /wp-feed.php?feed=rss2

RewriteRule /feed/?$ /wp-feed.php?feed=rss2

RewriteRule /comments/feed/?$ /wp-feed.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

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

上一页  1 2 

Tags:IIRF 伪静态

编辑录入:coldstar [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接