<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>评论：nginx重定向规则详细介绍(原创)</title>
	<atom:link href="http://www.jefflei.com/post/1015.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jefflei.com/post/1015.html</link>
	<description></description>
	<lastBuildDate>Mon, 28 Jun 2010 07:34:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>由：days of linnchord &#187; Blog Archive &#187; Setup on Linode.com with ubuntu+nginx+php+fastcgi+mysql 续</title>
		<link>http://www.jefflei.com/post/1015.html/comment-page-1#comment-54</link>
		<dc:creator>days of linnchord &#187; Blog Archive &#187; Setup on Linode.com with ubuntu+nginx+php+fastcgi+mysql 续</dc:creator>
		<pubDate>Wed, 02 Dec 2009 10:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.jefflei.com/?p=1015#comment-54</guid>
		<description>[...] nginx重定向规则详细介绍 [...]</description>
		<content:encoded><![CDATA[<p>[...] nginx重定向规则详细介绍 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：inetdemon</title>
		<link>http://www.jefflei.com/post/1015.html/comment-page-1#comment-32</link>
		<dc:creator>inetdemon</dc:creator>
		<pubDate>Mon, 13 Jul 2009 14:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.jefflei.com/?p=1015#comment-32</guid>
		<description>你的这些规则应该是一些url静态化的规则，只需要用简单的nginx rewrite命令，就可以直接用正则表达式做简单替换即可。相关资料请参照正则表达式</description>
		<content:encoded><![CDATA[<p>你的这些规则应该是一些url静态化的规则，只需要用简单的nginx rewrite命令，就可以直接用正则表达式做简单替换即可。相关资料请参照正则表达式</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：LH</title>
		<link>http://www.jefflei.com/post/1015.html/comment-page-1#comment-28</link>
		<dc:creator>LH</dc:creator>
		<pubDate>Sun, 21 Jun 2009 08:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.jefflei.com/?p=1015#comment-28</guid>
		<description>Jeff大哥，
麻烦你帮帮忙，帮以下的apache伪静态规则修改为nginx的伪静态规则。
O(∩_∩)O谢谢！


RewriteEngine On
RewriteRule ^(.*)/product-(.+)-(.+)-(.+)/\?*(.*)$ $1/product_list\.php\?firstRow=$2&amp;totalRows=$3&amp;id=$4
RewriteRule ^(.*)/product-(.+)-(.+)/\?*(.*)$ $1/product_list\.php\?firstRow=$2&amp;totalRows=$3
RewriteRule ^(.*)/product-(.+)/\?*(.*)$ $1/product_list\.php\?id=$2
RewriteRule ^(.*)/product/\?*(.*)$ $1/product_list\.php
RewriteRule ^(.*)/products-category/\?*(.*)$ $1/products_category\.php

RewriteRule ^(.*)/news-(.+)/\?*(.*)$ $1/news_detail\.php\?id=$2
RewriteRule ^(.*)/bizserver-(.+)-(.+)-(.+)/\?*(.*)$ $1/news_list\.php\?firstRow=$2&amp;totalRows=$3&amp;id=$4
RewriteRule ^(.*)/bizserver-(.+)/\?*(.*)$ $1/news_list\.php\?id=$2
RewriteRule ^(.*)/bizserver/\?*(.*)$ $1/biz_server\.php

RewriteRule ^(.*)/exhibition/\?*(.*)$ $1/exhibition\.php
RewriteRule ^(.*)/exhibition-detail/(.+)/\?*(.*)$ $1/exhibition_detail\.php\?id=$2
RewriteRule ^(.*)/exhibition-(.+)-(.+)/\?*(.*)$ $1/exhibition\.php\?firstRow=$2&amp;totalRows=$3

RewriteRule ^(.*)/company-(.+)-(.+)-(.+)/\?*(.*)$ $1/company_list\.php\?firstRow=$2&amp;totalRows=$3&amp;id=$4
RewriteRule ^(.*)/company-(.+)-(.+)/\?*(.*)$ $1/company_list\.php\?firstRow=$2&amp;totalRows=$3
RewriteRule ^(.*)/company-(.+)/\?*(.*)$ $1/company_list\.php\?id=$2
RewriteRule ^(.*)/company/\?*(.*)$ $1/company_list\.php
RewriteRule ^(.*)/companys-category/\?*(.*)$ $1/companys_category\.php

RewriteRule ^(.*)/user-space/(.+)-(.+)-(.+)-(.+)\?*(.*)$ $1/shop\.php\?firstRow=$4&amp;totalRows=$5&amp;uid=$3&amp;action=$2
RewriteRule ^(.*)/user-space/(.+)-(.+)-(.+)\?*(.*)$ $1/shop\.php\?uid=$3&amp;action=$2&amp;id=$4
RewriteRule ^(.*)/user-space/(.+)-(.+)\?*(.*)$ $1/shop\.php\?uid=$2&amp;action=$3
RewriteRule ^(.*)/user-space/(.+)/\?*(.*)$ $1/shop\.php\?uid=$2
RewriteRule ^(.*)/user-space/(.+)\?*(.*)$ $1/shop\.php\?uid=$2

RewriteRule ^(.*)/info-(.+)-(.+)-(.+)/\?*(.*)$ $1/buy_list\.php\?firstRow=$2&amp;totalRows=$3&amp;id=$4
RewriteRule ^(.*)/info-(.+)-(.+)/\?*(.*)$ $1/buy_list\.php\?firstRow=$2&amp;totalRows=$3
RewriteRule ^(.*)/info-(.+)/\?*(.*)$ $1/buy_list\.php\?id=$2
RewriteRule ^(.*)/info/\?*(.*)$ $1/buy_list\.php
RewriteRule ^(.*)/information-(.+)/\?*(.*)$ $1/buy_list\.php\?limit=$2
RewriteRule ^(.*)/buy-category/\?*(.*)$ $1/buy_category\.php

RewriteRule ^(.*)/aboutus/\?*(.*)$ $1/aboutus\.php
RewriteRule ^(.*)/aboutus/(.+)\?*(.*)$ $1/aboutus\.php\?type=$2
RewriteRule ^(.*)/guide/\?*(.*)$ $1/guide\.php
RewriteRule ^(.*)/guide/(.+)\?*(.*)$ $1/guide\.php\?id=$2
RewriteRule ^(.*)/job/\?*(.*)$ $1/job\.php
RewriteRule ^(.*)/announcement/(.+)\?*(.*)$ $1/announcement\.php\?id=$2
RewriteRule ^(.*)/changelink/\?*(.*)$ $1/change_link\.php

</description>
		<content:encoded><![CDATA[<p>Jeff大哥，<br />
麻烦你帮帮忙，帮以下的apache伪静态规则修改为nginx的伪静态规则。<br />
O(∩_∩)O谢谢！</p>
<p>RewriteEngine On<br />
RewriteRule ^(.*)/product-(.+)-(.+)-(.+)/\?*(.*)$ $1/product_list\.php\?firstRow=$2&amp;totalRows=$3&amp;id=$4<br />
RewriteRule ^(.*)/product-(.+)-(.+)/\?*(.*)$ $1/product_list\.php\?firstRow=$2&amp;totalRows=$3<br />
RewriteRule ^(.*)/product-(.+)/\?*(.*)$ $1/product_list\.php\?id=$2<br />
RewriteRule ^(.*)/product/\?*(.*)$ $1/product_list\.php<br />
RewriteRule ^(.*)/products-category/\?*(.*)$ $1/products_category\.php</p>
<p>RewriteRule ^(.*)/news-(.+)/\?*(.*)$ $1/news_detail\.php\?id=$2<br />
RewriteRule ^(.*)/bizserver-(.+)-(.+)-(.+)/\?*(.*)$ $1/news_list\.php\?firstRow=$2&amp;totalRows=$3&amp;id=$4<br />
RewriteRule ^(.*)/bizserver-(.+)/\?*(.*)$ $1/news_list\.php\?id=$2<br />
RewriteRule ^(.*)/bizserver/\?*(.*)$ $1/biz_server\.php</p>
<p>RewriteRule ^(.*)/exhibition/\?*(.*)$ $1/exhibition\.php<br />
RewriteRule ^(.*)/exhibition-detail/(.+)/\?*(.*)$ $1/exhibition_detail\.php\?id=$2<br />
RewriteRule ^(.*)/exhibition-(.+)-(.+)/\?*(.*)$ $1/exhibition\.php\?firstRow=$2&amp;totalRows=$3</p>
<p>RewriteRule ^(.*)/company-(.+)-(.+)-(.+)/\?*(.*)$ $1/company_list\.php\?firstRow=$2&amp;totalRows=$3&amp;id=$4<br />
RewriteRule ^(.*)/company-(.+)-(.+)/\?*(.*)$ $1/company_list\.php\?firstRow=$2&amp;totalRows=$3<br />
RewriteRule ^(.*)/company-(.+)/\?*(.*)$ $1/company_list\.php\?id=$2<br />
RewriteRule ^(.*)/company/\?*(.*)$ $1/company_list\.php<br />
RewriteRule ^(.*)/companys-category/\?*(.*)$ $1/companys_category\.php</p>
<p>RewriteRule ^(.*)/user-space/(.+)-(.+)-(.+)-(.+)\?*(.*)$ $1/shop\.php\?firstRow=$4&amp;totalRows=$5&amp;uid=$3&amp;action=$2<br />
RewriteRule ^(.*)/user-space/(.+)-(.+)-(.+)\?*(.*)$ $1/shop\.php\?uid=$3&amp;action=$2&amp;id=$4<br />
RewriteRule ^(.*)/user-space/(.+)-(.+)\?*(.*)$ $1/shop\.php\?uid=$2&amp;action=$3<br />
RewriteRule ^(.*)/user-space/(.+)/\?*(.*)$ $1/shop\.php\?uid=$2<br />
RewriteRule ^(.*)/user-space/(.+)\?*(.*)$ $1/shop\.php\?uid=$2</p>
<p>RewriteRule ^(.*)/info-(.+)-(.+)-(.+)/\?*(.*)$ $1/buy_list\.php\?firstRow=$2&amp;totalRows=$3&amp;id=$4<br />
RewriteRule ^(.*)/info-(.+)-(.+)/\?*(.*)$ $1/buy_list\.php\?firstRow=$2&amp;totalRows=$3<br />
RewriteRule ^(.*)/info-(.+)/\?*(.*)$ $1/buy_list\.php\?id=$2<br />
RewriteRule ^(.*)/info/\?*(.*)$ $1/buy_list\.php<br />
RewriteRule ^(.*)/information-(.+)/\?*(.*)$ $1/buy_list\.php\?limit=$2<br />
RewriteRule ^(.*)/buy-category/\?*(.*)$ $1/buy_category\.php</p>
<p>RewriteRule ^(.*)/aboutus/\?*(.*)$ $1/aboutus\.php<br />
RewriteRule ^(.*)/aboutus/(.+)\?*(.*)$ $1/aboutus\.php\?type=$2<br />
RewriteRule ^(.*)/guide/\?*(.*)$ $1/guide\.php<br />
RewriteRule ^(.*)/guide/(.+)\?*(.*)$ $1/guide\.php\?id=$2<br />
RewriteRule ^(.*)/job/\?*(.*)$ $1/job\.php<br />
RewriteRule ^(.*)/announcement/(.+)\?*(.*)$ $1/announcement\.php\?id=$2<br />
RewriteRule ^(.*)/changelink/\?*(.*)$ $1/change_link\.php</p>
]]></content:encoded>
	</item>
</channel>
</rss>
