大侠,帮忙把apache的伪静态转为nginx。谢谢
[*][*]
[*]DocumentRoot "/home/wwwroot/www.bmxxt.com/city/as"
[*]ServerName www.bmxxt.com/city/as
[*]
[*] Options FollowSymLinks IncludesNOEXEC Indexes
[*] DirectoryIndex index.html index.php
[*] AllowOverride None
[*] Order Deny,Allow
[*] Allow from all
[*]
[*]
[*]RewriteEngine On
[*]RewriteRule ^(.*)/information-id-(+)\.html$ $1/information\.php\?id=$2
[*]RewriteRule ^(.*)/category-catid-(+)\.html$ $1/category\.php\?catid=$2
[*]RewriteRule ^(.*)/category-catid-(+)-page-(+)\.html$ $1/category\.php\?catid=$2&page=$3
[*]
[*]RewriteRule ^(.*)/news\.html$ $1/news\.php
[*]RewriteRule ^(.*)/news-id-(+)\.html$ $1/news\.php\?id=$2
[*]RewriteRule ^(.*)/news-catid-(+)\.html$ $1/news\.php\?catid=$2
[*]RewriteRule ^(.*)/news-catid-(+)-page-(+)\.html$ $1/news\.php\?catid=$2&page=$3
[*]
[*]RewriteRule ^(.*)/corporation\.html\?*(.*)$ $1/corporation\.php
[*]RewriteRule ^(.*)/corporation-areaid-(+)\.html$ $1/corporation\.php\?areaid=$2
[*]RewriteRule ^(.*)/corporation-page-(+)\.html$ $1/corporation\.php\?page=$2
[*]RewriteRule ^(.*)/corporation-catid-(+)\.html$ $1/corporation\.php\?catid=$2
[*]RewriteRule ^(.*)/corporation-areaid-(+)-page-(+)\.html$ $1/corporation\.php\?areaid=$2&page=$3
[*]RewriteRule ^(.*)/corporation-catid-(+)-page-(+)\.html$ $1/corporation\.php\?catid=$2&page=$3
[*]RewriteRule ^(.*)/corporation-catid-(+)-areaid-(+)\.html$ $1/corporation\.php\?catid=$2&areaid=$3
[*]RewriteRule ^(.*)/corporation-catid-(+)-areaid-(+)-page-(+)\.html$ $1/corporation\.php\?catid=$2&areaid=$3&page=$4
[*]
[*]RewriteRule ^(.*)/sitemap\.html$ $1/about\.php\?part=sitemap
[*]RewriteRule ^(.*)/aboutus\.html$ $1/about\.php\?part=aboutus
[*]RewriteRule ^(.*)/aboutus-id-(+)\.html$ $1/about\.php\?part=aboutus&id=$2
[*]RewriteRule ^(.*)/announce\.html$ $1/about\.php\?part=announce&id=$2
[*]RewriteRule ^(.*)/faq\.html$ $1/about\.php\?part=faq
[*]RewriteRule ^(.*)/faq-id-(+)\.html$ $1/about\.php\?part=faq&id=$2
[*]RewriteRule ^(.*)/friendlink\.html$ $1/about\.php\?part=friendlink
[*]
[*]RewriteRule ^(.*)/space/(+)/$ $1/space\.php\?user=$2
[*]
[*]RewriteRule ^(.*)/store-(+)/$ $1/store\.php\?uid=$2
[*]RewriteRule ^(.*)/store-(+)/album.html$ $1/store\.php\?uid=$2&part=album
[*]RewriteRule ^(.*)/store-(+)/album-page-(+).html$ $1/store\.php\?uid=$2&part=album&page=$3
[*]RewriteRule ^(.*)/store-(+)/contactus.html$ $1/store\.php\?uid=$2&part=contactus
[*]RewriteRule ^(.*)/store-(+)/comment.html$ $1/store\.php\?uid=$2&part=comment
[*]RewriteRule ^(.*)/store-(+)/comment-page-(+).html$ $1/store\.php\?uid=$2&part=comment&page=$3
[*]RewriteRule ^(.*)/store-(+)/comment-good-page-(+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=good
[*]RewriteRule ^(.*)/store-(+)/comment-soso-page-(+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=soso
[*]RewriteRule ^(.*)/store-(+)/comment-bad-page-(+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=bad
[*]RewriteRule ^(.*)/store-(+)/guestbook.html$ $1/store\.php\?uid=$2&part=guestbook
[*]RewriteRule ^(.*)/store-(+)/goods.html$ $1/store\.php\?uid=$2&part=goods
[*]RewriteRule ^(.*)/store-(+)/(+)/page-(+).html$ $1/store\.php\?uid=$2&part=$3&page=$4
[*]RewriteRule ^(.*)/store-(+)/document-typeid-(+).html$ $1/store\.php\?uid=$2&part=document&typeid=$3
[*]RewriteRule ^(.*)/store-(+)/document-id-(+).html$ $1/store\.php\?uid=$2&part=document&id=$3
[*]
[*]
[*]
[*]
[*]
[*]DocumentRoot "/home/wwwroot/www.bmxxt.com/city/ay"
[*]ServerName www.bmxxt.com/city/ay
[*]
[*] Options FollowSymLinks IncludesNOEXEC Indexes
[*] DirectoryIndex index.html index.php
[*] AllowOverride None
[*] Order Deny,Allow
[*] Allow from all
[*]
[*]
[*]RewriteEngine On
[*]RewriteRule ^(.*)/information-id-(+)\.html$ $1/information\.php\?id=$2
[*]RewriteRule ^(.*)/category-catid-(+)\.html$ $1/category\.php\?catid=$2
[*]RewriteRule ^(.*)/category-catid-(+)-page-(+)\.html$ $1/category\.php\?catid=$2&page=$3
[*]
[*]RewriteRule ^(.*)/news\.html$ $1/news\.php
[*]RewriteRule ^(.*)/news-id-(+)\.html$ $1/news\.php\?id=$2
[*]RewriteRule ^(.*)/news-catid-(+)\.html$ $1/news\.php\?catid=$2
[*]RewriteRule ^(.*)/news-catid-(+)-page-(+)\.html$ $1/news\.php\?catid=$2&page=$3
[*]
[*]RewriteRule ^(.*)/corporation\.html\?*(.*)$ $1/corporation\.php
[*]RewriteRule ^(.*)/corporation-areaid-(+)\.html$ $1/corporation\.php\?areaid=$2
[*]RewriteRule ^(.*)/corporation-page-(+)\.html$ $1/corporation\.php\?page=$2
[*]RewriteRule ^(.*)/corporation-catid-(+)\.html$ $1/corporation\.php\?catid=$2
[*]RewriteRule ^(.*)/corporation-areaid-(+)-page-(+)\.html$ $1/corporation\.php\?areaid=$2&page=$3
[*]RewriteRule ^(.*)/corporation-catid-(+)-page-(+)\.html$ $1/corporation\.php\?catid=$2&page=$3
[*]RewriteRule ^(.*)/corporation-catid-(+)-areaid-(+)\.html$ $1/corporation\.php\?catid=$2&areaid=$3
[*]RewriteRule ^(.*)/corporation-catid-(+)-areaid-(+)-page-(+)\.html$ $1/corporation\.php\?catid=$2&areaid=$3&page=$4
[*]
[*]RewriteRule ^(.*)/sitemap\.html$ $1/about\.php\?part=sitemap
[*]RewriteRule ^(.*)/aboutus\.html$ $1/about\.php\?part=aboutus
[*]RewriteRule ^(.*)/aboutus-id-(+)\.html$ $1/about\.php\?part=aboutus&id=$2
[*]RewriteRule ^(.*)/announce\.html$ $1/about\.php\?part=announce&id=$2
[*]RewriteRule ^(.*)/faq\.html$ $1/about\.php\?part=faq
[*]RewriteRule ^(.*)/faq-id-(+)\.html$ $1/about\.php\?part=faq&id=$2
[*]RewriteRule ^(.*)/friendlink\.html$ $1/about\.php\?part=friendlink
[*]
[*]RewriteRule ^(.*)/space/(+)/$ $1/space\.php\?user=$2
[*]
[*]RewriteRule ^(.*)/store-(+)/$ $1/store\.php\?uid=$2
[*]RewriteRule ^(.*)/store-(+)/album.html$ $1/store\.php\?uid=$2&part=album
[*]RewriteRule ^(.*)/store-(+)/album-page-(+).html$ $1/store\.php\?uid=$2&part=album&page=$3
[*]RewriteRule ^(.*)/store-(+)/contactus.html$ $1/store\.php\?uid=$2&part=contactus
[*]RewriteRule ^(.*)/store-(+)/comment.html$ $1/store\.php\?uid=$2&part=comment
[*]RewriteRule ^(.*)/store-(+)/comment-page-(+).html$ $1/store\.php\?uid=$2&part=comment&page=$3
[*]RewriteRule ^(.*)/store-(+)/comment-good-page-(+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=good
[*]RewriteRule ^(.*)/store-(+)/comment-soso-page-(+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=soso
[*]RewriteRule ^(.*)/store-(+)/comment-bad-page-(+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=bad
[*]RewriteRule ^(.*)/store-(+)/guestbook.html$ $1/store\.php\?uid=$2&part=guestbook
[*]RewriteRule ^(.*)/store-(+)/goods.html$ $1/store\.php\?uid=$2&part=goods
[*]RewriteRule ^(.*)/store-(+)/(+)/page-(+).html$ $1/store\.php\?uid=$2&part=$3&page=$4
[*]RewriteRule ^(.*)/store-(+)/document-typeid-(+).html$ $1/store\.php\?uid=$2&part=document&typeid=$3
[*]RewriteRule ^(.*)/store-(+)/document-id-(+).html$ $1/store\.php\?uid=$2&part=document&id=$3
[*]
[*]
[*]
[*]
[*]
[*]
[*]复制代码 http://www.anilcetin.com/convert-apache-htaccess-to-nginx/求加分
回味依旧 发表于 2012-7-25 20:24
back.gif
http://www.anilcetin.com/convert-apache-htaccess-to-nginx/求加分
这个不可以哈
qqab 发表于 2012-7-25 20:24
back.gif
这个不可以哈
额 好吧我也不怎么会 等待其他大牛了
页:
[1]