<?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; rewrite</title>
	<atom:link href="http://www.weijingtai.com/tag/rewrite/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 X 伪静态规则-IIS -Nginx-Apache</title>
		<link>http://www.weijingtai.com/2010/05/07/discuz-x-iis-nginx-apache/</link>
		<comments>http://www.weijingtai.com/2010/05/07/discuz-x-iis-nginx-apache/#comments</comments>
		<pubDate>Fri, 07 May 2010 07:16:12 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[discuz]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[discuzx]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[伪静态]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=119</guid>
		<description><![CDATA[康胜刚刚发布了discuz x beta 版本，在管理后台，全局 » 优化设置 » 搜索引擎优化 选中url静态化的选项即可，相关规则文件官方已经出示例]]></description>
			<content:encoded><![CDATA[<p>康胜刚刚发布了<a href="http://www.discuz.net/thread-1628349-1-1.html" target="_blank">discuz x beta </a>版本，在管理后台，全局 » 优化设置 » 搜索引擎优化 选中url静态化的选项即可，相关规则文件官方已经出示例，摘录如下：</p>
<p>IIS-Isapi</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">[ISAPI_Rewrite]
&nbsp;
[ISAPI_Rewrite]
&nbsp;
# 3600 = 1 hour
CacheClockRate 3600
&nbsp;
RepeatLimit 32
&nbsp;
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/topic-(.+)\.html\?*(.*)$ $1/portal\.php\?mod=topic&amp;topic=$2&amp;$3
RewriteRule ^(.*)/article-([0-9]+)\.html\?*(.*)$ $1/portal\.php\?mod=article&amp;articleid=$2&amp;$3
RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html\?*(.*)$ $1/forum\.php\?mod=forumdisplay&amp;fid=$2&amp;page=$3&amp;$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forum\.php\?mod=viewthread&amp;tid=$2&amp;extra=page\%3D$4&amp;page=$3&amp;$5
RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forum\.php\?mod=group&amp;fid=$2&amp;page=$3&amp;$4
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/home\.php\?mod=space&amp;$2=$3&amp;$4
RewriteRule ^(.*)/([a-z]+)-(.+)\.html\?*(.*)$ $1/$2\.php\?rewrite=$3&amp;$4</pre></div></div>

<p><span id="more-119"></span><br />
Apache</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;"># 将 RewriteEngine 模式打开
RewriteEngine On
&nbsp;
# 修改以下语句中的 /discuz 为你的论坛目录地址，如果程序放在根目录中，请将 /discuz 修改为 /
RewriteBase /discuz
&nbsp;
# Rewrite 系统规则请勿修改
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&amp;topic=$1
RewriteRule ^article-([0-9]+)\.html$ portal.php?mod=article&amp;articleid=$1
RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&amp;fid=$1&amp;page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&amp;tid=$1&amp;extra=page\%3D$3&amp;page=$2
RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&amp;fid=$1&amp;page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&amp;$1=$2
RewriteRule ^([a-z]+)-(.+)\.html$ $1.php?rewrite=$2</pre></div></div>

<p>Nginx Web Server</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">rewrite ^(.*)/topic-(.+)\.html$ $1/portal.php?mod=topic&amp;topic=$2 last;
rewrite ^(.*)/article-([0-9]+)\.html$ $1/portal.php?mod=article&amp;articleid=$2 last;
rewrite ^(.*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&amp;fid=$2&amp;page=$3 last;
rewrite ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&amp;tid=$2&amp;extra=page%3D$4&amp;page=$3 last;
rewrite ^(.*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&amp;fid=$2&amp;page=$3 last;
rewrite ^(.*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&amp;$2=$3 last;
rewrite ^(.*)/([a-z]+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;</pre></div></div>

<p>IIS用户可直接下载些httpd.ini文件放至网站根目录下  <a class="downloadlink dlimg" href="http://www.weijingtai.com/wp-content/plugins/download-monitor/download.php?id=15" title="Version beta downloaded 685 times" ><img src="http://www.weijingtai.com/wp-content/uploads/2009/04/download.png" alt="Download discuzx Version beta" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2010/05/07/discuz-x-iis-nginx-apache/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>uchome rewrite for nginx</title>
		<link>http://www.weijingtai.com/2010/03/27/uchome-rewrite-nginx/</link>
		<comments>http://www.weijingtai.com/2010/03/27/uchome-rewrite-nginx/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 18:36:11 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[discuz]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[uchome]]></category>
		<category><![CDATA[伪静态]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=118</guid>
		<description><![CDATA[ngnix下uchome的伪静态规则，可以和discuz的规则合用]]></description>
			<content:encoded><![CDATA[<p>ngnix下uchome的伪静态规则，可以和<a href="http://www.weijingtai.com/2010/03/27/discuz-rewrite-nginx">discuz</a>的规则合用</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">location / {
     rewrite ^(.*)/(space|network)\-(.+)\.html$ $1/$2.php?rewrite=$3 last;
     rewrite ^(.*)/(space|network)\.html$ $1/$2.php last;
     rewrite ^(.*)/([0-9]+)$ $1/space.php?uid=$2 last;
        }</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2010/03/27/uchome-rewrite-nginx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>discuz rewrite for nginx</title>
		<link>http://www.weijingtai.com/2010/03/27/discuz-rewrite-nginx/</link>
		<comments>http://www.weijingtai.com/2010/03/27/discuz-rewrite-nginx/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 18:28:24 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[discuz]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[伪静态]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=116</guid>
		<description><![CDATA[discuz 在nginx下的伪静态规则！ （ps：discuz的伪静态规则 ，一般情况下是通用的，不必区分是discuz6还是7）]]></description>
			<content:encoded><![CDATA[<p>discuz 在nginx下的伪静态规则！ （ps：discuz的伪静态规则 ，一般情况下是通用的，不必区分是discuz6还是7）</p>

<div class="wp_syntax"><div class="code"><pre class="language" style="font-family:monospace;">location / {
      rewrite ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2 last;
      rewrite ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&amp;amp;page=$3 last;
      rewrite ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&amp;amp;extra=page%3D$4&amp;amp;page=$3 last;
      rewrite ^(.*)/profile-(username|uid)-(.+)\.html$ $1/viewpro.php?$2=$3 last;
      rewrite ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3 last;
      rewrite ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2 last;
        }</pre></div></div>

<p><a href="http://www.weijingtai.com/2010/03/27/uchome-rewrite-nginx/">Uchome的在这里</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2010/03/27/discuz-rewrite-nginx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>typecho的rewrite规则for Nginx</title>
		<link>http://www.weijingtai.com/2010/03/20/typecho-rewrite-for-nginx/</link>
		<comments>http://www.weijingtai.com/2010/03/20/typecho-rewrite-for-nginx/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 18:04:11 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[typecho]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=115</guid>
		<description><![CDATA[typecho在nginx下的rewrite有好多方法，试下来还是这个方便一些！]]></description>
			<content:encoded><![CDATA[<p>typecho在nginx下的rewrite有好多方法，试下来还是这个方便一些！</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">location / {
        index index.html index.php;
        if (-f $request_filename/index.html){
            rewrite (.*) $1/index.html break;
        }
        if (-f $request_filename/index.php){
            rewrite (.*) $1/index.php;
        }
        if (!-f $request_filename){
            rewrite (.*) /index.php;
        }
    }</pre></td></tr></table></div>

<p><span id="more-115"></span><br />
转自<a href="http://huobazi.aspxboy.com/2009/07/09/nginx-typecho-rewrite">武眉博</a>！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2010/03/20/typecho-rewrite-for-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NGNIX&#8211;高性能的 HTTP 和 反向代理 服务器</title>
		<link>http://www.weijingtai.com/2010/03/17/ngnix/</link>
		<comments>http://www.weijingtai.com/2010/03/17/ngnix/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 12:59:09 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=113</guid>
		<description><![CDATA[           Nginx ("engine x") 是一个高性能的 HTTP 和反向代理服务器，也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的，它已经在该站点运行超过三年了。Igor 将源代码以类BSD许可证的形式发布。]]></description>
			<content:encoded><![CDATA[<p>           <a href="http://www.nginx.net/" target="_blank"><span style="color: #4f6371;">Nginx</span></a> (&#8220;engine x&#8221;) 是一个高性能的 HTTP 和反向代理服务器，也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的，它已经在该站点运行超过三年了。Igor 将源代码以类BSD许可证的形式发布。</p>
<p>　　Nginx 超越 Apache 的高性能和稳定性，使得国内使用 Nginx 作为 Web 服务器的网站也越来越多，其中包括<a href="http://blog.sina.com.cn/" target="_blank"><span style="color: #4f6371;">新浪博客</span></a>、<a href="http://v.sina.com.cn/" target="_blank"><span style="color: #4f6371;">新浪播客</span></a>、<a href="http://news.163.com/" target="_blank"><span style="color: #4f6371;">网易新闻</span></a>、<a href="http://www.qq.com/" target="_blank"><span style="color: #4f6371;">腾讯网</span></a>、<a href="http://blog.sohu.com/" target="_blank"><span style="color: #4f6371;">搜狐博客</span></a>等门户网站频道，<a href="http://www.6.cn/" target="_blank"><span style="color: #4f6371;">六间房</span></a>、<a href="http://www.56.com/" target="_blank"><span style="color: #4f6371;">56.com</span></a>等视频分享网站，<a href="http://www.discuz.net/" target="_blank"><span style="color: #4f6371;">Discuz!官方论坛</span></a>、<a href="http://www.newsmth.net/" target="_blank"><span style="color: #4f6371;">水木社区</span></a>等知名论坛，<a href="http://www.sdo.com/" target="_blank"><span style="color: #4f6371;">盛大在线</span></a>、<a href="http://www.xoyo.com/" target="_blank"><span style="color: #4f6371;">金山逍遥网</span></a>等网络游戏网站，<a href="http://www.douban.com/" target="_blank"><span style="color: #4f6371;">豆瓣</span></a>、<a href="http://www.renren.com/" target="_blank"><span style="color: #4f6371;">人人网</span></a>、<a href="http://www.yupoo.com/" target="_blank"><span style="color: #4f6371;">YUPOO相册</span></a>、<a href="http://www.iciba.com/" target="_blank"><span style="color: #4f6371;">金山爱词霸</span></a>、<a href="http://www.xunlei.com/" target="_blank"><span style="color: #4f6371;">迅雷在线</span></a>等新兴Web 2.0网站。</p>
<p>        Nginx不光是一些大型站点应该效率高，而且由于本身的小巧和高效率，深受广大个人站长的喜爱，许多站长应用在vps上以减少系统资源的应用 。以后将添加一些Ngnix的伪静态规则</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2010/03/17/ngnix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>shopex 4.84伪静态设置方法For win（转）</title>
		<link>http://www.weijingtai.com/2009/08/05/shopex-484-iis6/</link>
		<comments>http://www.weijingtai.com/2009/08/05/shopex-484-iis6/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 09:18:02 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[shopex]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[伪静态]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=108</guid>
		<description><![CDATA[之前介绍了一篇关于shopex4.84的伪静态设置方法，不少朋友觉得不够详细，正好好友诡谲写有一篇详细的介绍，就不再重复，直接转过来。]]></description>
			<content:encoded><![CDATA[<p>之前介绍了一篇关于<a href="http://www.weijingtai.com/2009/04/16/shopex-484-iis/" target="_blank">shopex4.84的伪静态设置</a>方法，不少朋友觉得不够详细，正好好友<a href="http://www.xmlchina.org">诡谲</a>写有一篇详细的介绍，就不再重复，直接转过来。</p>
<p>============================以下为原文============================</p>
<p>由于Shopex官方对win系统支持不够,而且直接在后台开启伪静态会跳出提示,告诉你的服务器不是Apache.不能开启.但是我们依然可以绕过这个限制,需要修改一个文件,该文件位于/core/admin/controller/system/目录下,我们需要修改ctl.setting.php这个文件.但是大家下载打开却发现很多乱码,根本不知道如何下手.其实这是经过zend加密过的源码,我们需要对其进行解密.例如Dezender.这个软件可以直接将经过zend加密过的源码还原成原来的文件.如下图所示.<br />
<span id="more-108"></span></p>
<p><a class="highslide" onclick="function onclick() { function onclick() { return vz.expand(this) } }" href="http://www.weijingtai.com/wp-content/uploads/2009/08/eb5b_dezender.jpg"><img class="alignnone size-medium wp-image-1923" style="width: auto;" title="dezender" src="http://www.weijingtai.com/wp-content/uploads/2009/08/9b3e_dezender-520x442.jpg" alt="dezender" width="520" height="442" /></a></p>
<p>解密之后,我们需要对其进行修改.在文本编辑器查里打开文件</p>
<p>在第185行找到这段:</p>
<blockquote><p>if ( !strpos( $content, &#8220;[*[".md5( $code )."]*]&#8221; ) )</p></blockquote>
<p>将其替换成</p>
<blockquote><p>if ( <span style="color: #ff0000;">false &amp;&amp;</span> !strpos( $content, &#8220;[*[".md5( $code )."]*]&#8221; ) )</p></blockquote>
<p>就是在!strpos前面添加一个false,然后我们将这个文件上传到服务器相应位置.然后我们就能在后台开启伪静态了.</p>
<p>文章转载自:<a href="http://www.xmlchina.org/original-shopex-484-pseudo-static-method-as-well-as-covering-the-iis-server-nginx/"><span style="color: #0854c7;">http://www.xmlchina.org/original-shopex-484-pseudo-static-method-as-well-as-covering-the-iis-server-nginx/</span></a></p>
<p>=========================以上为原文==========================</p>
<p>另外，由于解密软件在xpsp2以上系统不能正常运行，附4.84 21715版本处理好的文件，替换文件前请先备份，以免不符。</p>
<a class="downloadlink dlimg" href="http://www.weijingtai.com/wp-content/plugins/download-monitor/download.php?id=13" title="Version 4.8.4.25715 downloaded 533 times" ><img src="http://www.weijingtai.com/wp-content/uploads/2009/04/download.png" alt="Download shopex4.84-modify Version 4.8.4.25715" /></a>
]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2009/08/05/shopex-484-iis6/feed/</wfw:commentRss>
		<slash:comments>13</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>马克思2.5伪静态详细设置</title>
		<link>http://www.weijingtai.com/2009/07/09/maxcms-rewrite/</link>
		<comments>http://www.weijingtai.com/2009/07/09/maxcms-rewrite/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 09:50:47 +0000</pubDate>
		<dc:creator>衣不如新</dc:creator>
				<category><![CDATA[isapi-rewrite]]></category>
		<category><![CDATA[isapi]]></category>
		<category><![CDATA[maxcms]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[马克思]]></category>

		<guid isPermaLink="false">http://www.weijingtai.com/?p=103</guid>
		<description><![CDATA[马克思2.5新版增加了伪静态的功能，这里详细介绍一下。
maxcms的伪静态基于isapi-rewrite组件来实现，所以在使用伪静态之前，请先确定你所使用的空间支持isapi-rewrite。国内虚拟主机大多都支持此组件，具体情况可以向你的虚拟主机空间商咨询。]]></description>
			<content:encoded><![CDATA[<p>马克思2.5新版增加了伪静态的功能，这里详细介绍一下。<br />
maxcms的伪静态基于isapi-rewrite组件来实现，所以在使用伪静态之前，请先确定你所使用的空间支持isapi-rewrite。国内虚拟主机大多都支持此组件，具体情况可以向你的<a href="http://www.8du.cc">虚拟主机空间商</a>咨询。</p>
<p>自己可以对服务器环境进行配置的用户可以使用本站提供的这一版本 <a href="http://www.weijingtai.com/2009/04/08/isapi_rewrite-213/">http://www.weijingtai.com/2009/04/08/isapi_rewrite-213/</a>，马克思伪静态测试环境就是使用的这个版本。</p>
<p>确认你的空间支持rewrite组件以后，登陆马克思后台=》系统=》网站配置<br />
<span id="more-103"></span><br />
<a href="http://www.weijingtai.com/wp-content/uploads/2009/07/maxcms1.jpg"><img class="alignnone size-full wp-image-105" title="maxcms1" src="http://www.weijingtai.com/wp-content/uploads/2009/07/maxcms1.jpg" alt="maxcms1" width="636" height="177" /></a></p>
<p>提交设置以后，马克思系会自动在网站目录下生成伪静态规则文件httpd.ini。</p>
<p style="color: #f52109;">文件后缀名建议使用html</p>
<p style="color: #f52109;"><strong>关于子目录</strong> ：</p>
<p>httpd.ini文件是放在<strong><span style="text-decoration: underline;">网站根目录</span></strong>下才会生效，所以如果你的maxcms放在子文件夹下，需要将httpd.ini移动到web根目录才能生效。</p>
<p>（注意，有个别版本的isapi-rewrite的规则文件名可能为httpd.conf，如果遇到这种情况 ，将httpd.ini自行改名即可。） </p>
<p><a href="http://www.weijingtai.com/wp-content/uploads/2009/07/maxcms.jpg"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.weijingtai.com/2009/07/09/maxcms-rewrite/feed/</wfw:commentRss>
		<slash:comments>3</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>
	</channel>
</rss>

