<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>伪静态 &#187; IIS7</title>
	<atom:link href="http://www.weijingtai.com/tag/iis7/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weijingtai.com</link>
	<description>Url rewrite 伪静态规则使用收集</description>
	<lastBuildDate>Mon, 14 Jun 2010 03:30:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>discuz uchome IIS7 rewrite规则</title>
		<link>http://www.weijingtai.com/2010/03/17/discuz-uchome-iis7-rewrite/</link>
		<comments>http://www.weijingtai.com/2010/03/17/discuz-uchome-iis7-rewrite/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 12:51:09 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[IIS7-rewrite]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=112</guid>
		<description><![CDATA[discuz和uchome 在IIS7 默认rewrite模块下的伪静态规则]]></description>
			<content:encoded><![CDATA[<p>将以下内容添加到web.config文件中即可</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;configuration&gt;
&lt;system.webServer&gt;
&lt;rewrite&gt;
            &lt;rules&gt;
                &lt;rule name=&quot;Imported Rule 17&quot;&gt;
                    &lt;match url=&quot;^archiver/((fid|tid)-[\w\-]+\.html)$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;archiver/index.php?{R:1}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;Imported Rule 18&quot;&gt;
                    &lt;match url=&quot;^forum-([0-9]+)-([0-9]+)\.html$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;forumdisplay.php?fid={R:1}&amp;amp;page={R:2}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;Imported Rule 19&quot;&gt;
                    &lt;match url=&quot;^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;viewthread.php?tid={R:1}&amp;amp;extra=page\%3D{R:3}&amp;amp;page={R:2}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;Imported Rule 20&quot;&gt;
                    &lt;match url=&quot;^space-(username|uid)-(.+)\.html$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;space.php?{R:1}={R:2}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;Imported Rule 21&quot;&gt;
                    &lt;match url=&quot;^tag-(.+)\.html$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;tag.php?name={R:1}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
            &lt;/rules&gt;
&lt;/rewrite&gt;
&lt;/system.webServer&gt;
&lt;/configuration&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2010/03/17/discuz-uchome-iis7-rewrite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress FOR IIS7 URL Rewrite</title>
		<link>http://www.weijingtai.com/2009/07/13/wordpress-rewrite-for-iis7/</link>
		<comments>http://www.weijingtai.com/2009/07/13/wordpress-rewrite-for-iis7/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 06:54:18 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[IIS7-rewrite]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[中文tag]]></category>
		<category><![CDATA[伪静态]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=107</guid>
		<description><![CDATA[wordpress 官方已经内置了 IIS7 URL Rewrite 的支持，但对于中文用户来说，官方内置的伪静态规则不能完好的支持中文tag的问题。虽然可以更改系统文件来解决，但比较麻烦，而且不方便，所以一直没介绍过。现在帖出一个自用的的规则，可以解决wordpress的中文tag的问题。]]></description>
			<content:encoded><![CDATA[<p>wordpress 官方已经内置了 IIS7 URL Rewrite 的支持，但对于中文用户来说，官方内置的伪静态规则不能完好的支持<a href="http://www.weijingtai.com/tag/%e4%b8%ad%e6%96%87tag/">中文tag</a>的问题。虽然可以更改系统文件来解决，但比较麻烦，而且不方便，所以一直没介绍过。现在帖出一个自用的的规则，可以解决wordpress的中文tag的问题。<br />
<span id="more-107"></span><br />
将下列代码加入到web目录下的web.config文件的&lt;system.webServer&gt;之后即可。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">        &lt;rewrite&gt;
           &lt;rules&gt;
                &lt;clear /&gt;
                &lt;rule name=&quot;wordpress2.7&quot; stopProcessing=&quot;true&quot;&gt;
                    &lt;match url=&quot;.*&quot; /&gt;
                    &lt;conditions logicalGrouping=&quot;MatchAll&quot;&gt;
                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; negate=&quot;true&quot; /&gt;
                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; negate=&quot;true&quot; /&gt;
                    &lt;/conditions&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;index.php&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;chinese tag&quot; stopProcessing=&quot;true&quot;&gt;
                    &lt;match url=&quot;/tag/(.*)&quot; /&gt;
                    &lt;conditions logicalGrouping=&quot;MatchAll&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;/index\.php\?tag={R:1}&quot; /&gt;
                &lt;/rule&gt;
	   &lt;/rules&gt;
	&lt;/rewrite&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2009/07/13/wordpress-rewrite-for-iis7/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>shopex 4.8 for iis 7 伪静态</title>
		<link>http://www.weijingtai.com/2009/06/22/shopex-48-for-iis-7/</link>
		<comments>http://www.weijingtai.com/2009/06/22/shopex-48-for-iis-7/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 07:39:55 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[IIS7-rewrite]]></category>
		<category><![CDATA[shopex]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[伪静态]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=102</guid>
		<description><![CDATA[将下列代码加入到web目录下的web.config文件的<system.webServer>之后即可。]]></description>
			<content:encoded><![CDATA[<p>shopex 4.84 用在iis 7 <a href="http://www.weijingtai.com/2009/05/18/iis7-url-rewrite-module/">url rewrite module</a> 下的规则文件</p>
<p>将下列代码加入到web目录下的web.config文件的&lt;system.webServer&gt;之后即可。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">        &lt;rewrite&gt;
            &lt;rules&gt;
                &lt;rule name=&quot;disableDownloadThemeHtml&quot;&gt;
                    &lt;match url=&quot;^themes/.*\.(html|xml)$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;CustomResponse&quot; url=&quot;/&quot; statusCode=&quot;403&quot; statusReason=&quot;Forbidden&quot; statusDescription=&quot;Forbidden&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;urlRewrite&quot;&gt;
                    &lt;match url=&quot;^(.*)$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;conditions logicalGrouping=&quot;MatchAll&quot;&gt;
                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; pattern=&quot;\.(html|xml|json|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$&quot; ignoreCase=&quot;false&quot; /&gt;
                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsFile&quot; negate=&quot;true&quot; pattern=&quot;&quot; ignoreCase=&quot;false&quot; /&gt;
                        &lt;add input=&quot;{REQUEST_FILENAME}&quot; matchType=&quot;IsDirectory&quot; negate=&quot;true&quot; pattern=&quot;&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;/conditions&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;index.php?{R:1}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
            &lt;/rules&gt;
        &lt;/rewrite&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2009/06/22/shopex-48-for-iis-7/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>discuz7 for iis 7 URL Rewrite Module</title>
		<link>http://www.weijingtai.com/2009/05/26/discuz7-for-iis-7-rewrite/</link>
		<comments>http://www.weijingtai.com/2009/05/26/discuz7-for-iis-7-rewrite/#comments</comments>
		<pubDate>Tue, 26 May 2009 13:31:51 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[IIS7-rewrite]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=98</guid>
		<description><![CDATA[将下列代码加入到web目录下的web.config文件的<system.webServer>之后即可。]]></description>
			<content:encoded><![CDATA[<p>discuz 用在iis 7 <a href="http://www.weijingtai.com/2009/05/18/iis7-url-rewrite-module/">url rewrite module</a> 下的规则文件</p>
<p>将下列代码加入到web目录下的web.config文件的&lt;system.webServer&gt;之后即可。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">        &lt;rewrite&gt;
            &lt;rules&gt;
                &lt;rule name=&quot;Imported Rule 17&quot;&gt;
                    &lt;match url=&quot;^archiver/((fid|tid)-[\w\-]+\.html)$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;archiver/index.php?{R:1}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;Imported Rule 18&quot;&gt;
                    &lt;match url=&quot;^forum-([0-9]+)-([0-9]+)\.html$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;forumdisplay.php?fid={R:1}&amp;amp;page={R:2}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;Imported Rule 19&quot;&gt;
                    &lt;match url=&quot;^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;viewthread.php?tid={R:1}&amp;amp;extra=page\%3D{R:3}&amp;amp;page={R:2}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;Imported Rule 20&quot;&gt;
                    &lt;match url=&quot;^space-(username|uid)-(.+)\.html$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;space.php?{R:1}={R:2}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
                &lt;rule name=&quot;Imported Rule 21&quot;&gt;
                    &lt;match url=&quot;^tag-(.+)\.html$&quot; ignoreCase=&quot;false&quot; /&gt;
                    &lt;action type=&quot;Rewrite&quot; url=&quot;tag.php?name={R:1}&quot; appendQueryString=&quot;false&quot; /&gt;
                &lt;/rule&gt;
            &lt;/rules&gt;
        &lt;/rewrite&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2009/05/26/discuz7-for-iis-7-rewrite/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>wordpress 2.8将内建IIS 7 URL Rewrite Module支持</title>
		<link>http://www.weijingtai.com/2009/05/22/wordpress-iis7-url-rewrite-module/</link>
		<comments>http://www.weijingtai.com/2009/05/22/wordpress-iis7-url-rewrite-module/#comments</comments>
		<pubDate>Fri, 22 May 2009 18:39:12 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[IIS7-rewrite]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[wordpress2.8]]></category>
		<category><![CDATA[伪静态]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=93</guid>
		<description><![CDATA[最近几天正在测试IIS7  URL Rewrite Module 的一些伪静态规则，从RuslanY的blog上得知，wordpress2.8将内建对IIS7 URL Rewrite Module的支持，在wp 2.8的后台设置=》固定链接中，选择好要使用的固定链接形式以后点击保存，将自动显示出一段用于IIS7  URL Rewrite Module 的规则，复制这段规则到网站目录下的web.config文件中，即可实现wordprss的固定链接。]]></description>
			<content:encoded><![CDATA[<p>最近几天正在测试IIS7  URL Rewrite Module 的一些伪静态规则，从<a href="http://ruslany.net/" target="_blank">RuslanY</a>的blog上得知，wordpress2.8将内建对IIS7 URL Rewrite Module的支持，检测到环境包含IIS7 URL Rewrite Module1.1以后，在wp 2.8的后台设置=》固定链接中，选择好要使用的固定链接形式以后点击保存，将自动将相应的伪静态规则添加到web.config文件中，即可实现wordprss的固定链接。</p>
<p>如图所示 <br />
<span id="more-93"></span></p>
<p><a href="http://www.weijingtai.com/wp-content/uploads/2009/05/e340_wp-permalinks-patch.png"><img src="http://www.weijingtai.com/wp-content/uploads/2009/05/e340_wp-permalinks-patch.png" alt="" width="585" height="505" /></a></p>
<p><a href="http://www.weijingtai.com/wp-content/uploads/2009/05/6db7_wp-permalinks-patch1.png"><img src="http://www.weijingtai.com/wp-content/uploads/2009/05/9823_wp-permalinks-patch1-500x446.png" alt="" width="585" height="465" /></a></p>
<p>从图中可以看出这段规则代码和现在IIS7官方所出示的wordpress 2.7所用的代码相同，2.8只是将其内置在后台提示</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2009/05/22/wordpress-iis7-url-rewrite-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS7-URL重写(URL Rewrite Module)</title>
		<link>http://www.weijingtai.com/2009/05/18/iis7-url-rewrite-module/</link>
		<comments>http://www.weijingtai.com/2009/05/18/iis7-url-rewrite-module/#comments</comments>
		<pubDate>Mon, 18 May 2009 13:03:09 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[IIS7-rewrite]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=82</guid>
		<description><![CDATA[IIS7 URL Rewrite Module是一个基于规则的URL重写引擎，用于在URL被Web服务器处理之前改变请求的URL。对于动态Web应用程序，它可以为用户和搜索引擎提供友好的URL，URL重写和重定向是基于HTTP头和服务器变量的，并可以对站点内容进行访问控制。]]></description>
			<content:encoded><![CDATA[<p>微软在IIS7中添加了URL的重写模块,并且免费使用，可以导入.htaccess规则，确实是个不错的选择</p>
<p><strong>URL Rewrite Module</strong> </p>
<blockquote><p>URL Rewrite Module是一个基于规则的URL重写引擎，用于在URL被Web服务器处理之前改变请求的URL。对于动态Web应用程序，它可以为用户和搜索引擎提供友好的URL，URL重写和重定向是基于HTTP头和服务器变量的，并可以对站点内容进行访问控制。</p></blockquote>
<p>使用 IIS7 自带的 FastCgi 模式</p>
<p>官方地址：<a href="http://learn.iis.net/page.aspx/460/using-url-rewrite-module/">使用URL Rewrite Module</a>                                                                          <span id="more-82"></span><br />
  下载相应模块：  <a href="http://www.iis.net/downloads/default.aspx?tabid=34&amp;amp;amp;g=6&amp;amp;amp;i=1691">X86</a>   <a href="http://www.iis.net/downloads/default.aspx?tabid=34&amp;amp;amp;g=6&amp;amp;amp;i=1692">X64</a><br />
 支持：<a href="http://forums.iis.net/1152.aspx">URL Rewrite Module论坛</a></p>
<p>下载相应的模块安装，然后重启，可以看到URL rewrite模块<img id="img_0.38333535697119697" style="cursor: pointer;" src="http://www.weijingtai.com/wp-content/uploads/2009/05/531b_c31c052fac5da48b017c219bc1db458d.jpg" alt="" width="600" height="349" /></p>
<p>最简单的处理方式 就是在本地写好一个 <span style="color: #ff0000;">*.htaccess </span>规则文件导入 就OK 。看下图</p>
<p>打开刚安装的模块就可以看见 下图了。<br />
<img id="img_0.5067238047362488" src="http://www.weijingtai.com/wp-content/uploads/2009/05/684e_fce570feecde59426d87fceef17a6302.jpg" alt="" width="256" height="225" /></p>
<p><img style="cursor: pointer;" src="http://www.weijingtai.com/wp-content/uploads/2009/05/4a6e_d48502ab982659a51e4e7ceb154fcd85.jpg" alt="" width="600" height="398" /></p>
<p>应用返回 就可以看见规则了。<br />
<img src="http://www.weijingtai.com/wp-content/uploads/2009/05/50f4_92179f3ad69155fd9c9e292135116f64.jpg" alt="" width="433" height="240" /></p>
<p>导入后应用 就可以正常使用了。这个比较简单。</p>
<p>下面说一下，手动添加的。看上上图 点一下 <span style="color: #ff0000;">Add Rules</span> 就会有下图了。<br />
<img style="cursor: pointer;" src="http://www.weijingtai.com/wp-content/uploads/2009/05/7e60_9767a775af461c595b9b8ed4068f2d17.jpg" alt="" width="600" height="433" /><br />
添加规则 ING。。。<br />
<img style="cursor: pointer;" src="http://www.weijingtai.com/wp-content/uploads/2009/05/8094_0f2ecc7ca26b824530f8742cc54a4399.jpg" alt="" width="600" height="536" /></p>
<p>保存后反回就看见了这条规则了。<br />
<img style="cursor: pointer;" src="http://www.weijingtai.com/wp-content/uploads/2009/05/8329_b991fe75a0b10eac74815be23e900eb4.jpg" alt="" width="600" height="119" /><br />
完成后，你就可以在程序目录的 web.config 文件中看到规则文件。</p>
<p>稍后将更新一些常用程序的IIS rewrite规则，也可以从以前本站发布的下载包中寻找相应规则导入。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2009/05/18/iis7-url-rewrite-module/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

