找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 41|回复: 3

大侠,帮忙把apache的伪静态转为nginx。谢谢

[复制链接]

175

主题

1501

回帖

3575

积分

论坛元老

积分
3575
发表于 2012-7-25 19:13:13 | 显示全部楼层 |阅读模式
[ol]
  • 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
  • [I]
  • RewriteEngine On
  • RewriteRule ^(.*)/information-id-([0-9]+)\.html$ $1/information\.php\?id=$2
  • RewriteRule ^(.*)/category-catid-([0-9]+)\.html$ $1/category\.php\?catid=$2
  • RewriteRule ^(.*)/category-catid-([0-9]+)-page-([0-9]+)\.html$ $1/category\.php\?catid=$2&page=$3
  • RewriteRule ^(.*)/news\.html$ $1/news\.php
  • RewriteRule ^(.*)/news-id-([0-9]+)\.html$ $1/news\.php\?id=$2
  • RewriteRule ^(.*)/news-catid-([0-9]+)\.html$ $1/news\.php\?catid=$2
  • RewriteRule ^(.*)/news-catid-([0-9]+)-page-([0-9]+)\.html$ $1/news\.php\?catid=$2&page=$3
  • RewriteRule ^(.*)/corporation\.html\?*(.*)$ $1/corporation\.php
  • RewriteRule ^(.*)/corporation-areaid-([0-9]+)\.html$ $1/corporation\.php\?areaid=$2
  • RewriteRule ^(.*)/corporation-page-([0-9]+)\.html$ $1/corporation\.php\?page=$2
  • RewriteRule ^(.*)/corporation-catid-([0-9]+)\.html$ $1/corporation\.php\?catid=$2
  • RewriteRule ^(.*)/corporation-areaid-([0-9]+)-page-([0-9]+)\.html$ $1/corporation\.php\?areaid=$2&page=$3
  • RewriteRule ^(.*)/corporation-catid-([0-9]+)-page-([0-9]+)\.html$ $1/corporation\.php\?catid=$2&page=$3
  • RewriteRule ^(.*)/corporation-catid-([0-9]+)-areaid-([0-9]+)\.html$ $1/corporation\.php\?catid=$2&areaid=$3
  • RewriteRule ^(.*)/corporation-catid-([0-9]+)-areaid-([0-9]+)-page-([0-9]+)\.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-([0-9]+)\.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-([0-9]+)\.html$ $1/about\.php\?part=faq&id=$2
  • RewriteRule ^(.*)/friendlink\.html$ $1/about\.php\?part=friendlink
  • RewriteRule ^(.*)/space/([a-z0-9\-\_]+)/$ $1/space\.php\?user=$2
  • RewriteRule ^(.*)/store-([0-9]+)/$ $1/store\.php\?uid=$2
  • RewriteRule ^(.*)/store-([0-9]+)/album.html$ $1/store\.php\?uid=$2&part=album
  • RewriteRule ^(.*)/store-([0-9]+)/album-page-([0-9]+).html$ $1/store\.php\?uid=$2&part=album&page=$3
  • RewriteRule ^(.*)/store-([0-9]+)/contactus.html$ $1/store\.php\?uid=$2&part=contactus
  • RewriteRule ^(.*)/store-([0-9]+)/comment.html$ $1/store\.php\?uid=$2&part=comment
  • RewriteRule ^(.*)/store-([0-9]+)/comment-page-([0-9]+).html$ $1/store\.php\?uid=$2&part=comment&page=$3
  • RewriteRule ^(.*)/store-([0-9]+)/comment-good-page-([0-9]+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=good
  • RewriteRule ^(.*)/store-([0-9]+)/comment-soso-page-([0-9]+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=soso
  • RewriteRule ^(.*)/store-([0-9]+)/comment-bad-page-([0-9]+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=bad
  • RewriteRule ^(.*)/store-([0-9]+)/guestbook.html$ $1/store\.php\?uid=$2&part=guestbook
  • RewriteRule ^(.*)/store-([0-9]+)/goods.html$ $1/store\.php\?uid=$2&part=goods
  • RewriteRule ^(.*)/store-([0-9]+)/([a-z]+)/page-([0-9]+).html$ $1/store\.php\?uid=$2&part=$3&page=$4
  • RewriteRule ^(.*)/store-([0-9]+)/document-typeid-([0-9]+).html$ $1/store\.php\?uid=$2&part=document&typeid=$3
  • RewriteRule ^(.*)/store-([0-9]+)/document-id-([0-9]+).html$ $1/store\.php\?uid=$2&part=document&id=$3
  • [/I]
  • 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
  • [I]
  • RewriteEngine On
  • RewriteRule ^(.*)/information-id-([0-9]+)\.html$ $1/information\.php\?id=$2
  • RewriteRule ^(.*)/category-catid-([0-9]+)\.html$ $1/category\.php\?catid=$2
  • RewriteRule ^(.*)/category-catid-([0-9]+)-page-([0-9]+)\.html$ $1/category\.php\?catid=$2&page=$3
  • RewriteRule ^(.*)/news\.html$ $1/news\.php
  • RewriteRule ^(.*)/news-id-([0-9]+)\.html$ $1/news\.php\?id=$2
  • RewriteRule ^(.*)/news-catid-([0-9]+)\.html$ $1/news\.php\?catid=$2
  • RewriteRule ^(.*)/news-catid-([0-9]+)-page-([0-9]+)\.html$ $1/news\.php\?catid=$2&page=$3
  • RewriteRule ^(.*)/corporation\.html\?*(.*)$ $1/corporation\.php
  • RewriteRule ^(.*)/corporation-areaid-([0-9]+)\.html$ $1/corporation\.php\?areaid=$2
  • RewriteRule ^(.*)/corporation-page-([0-9]+)\.html$ $1/corporation\.php\?page=$2
  • RewriteRule ^(.*)/corporation-catid-([0-9]+)\.html$ $1/corporation\.php\?catid=$2
  • RewriteRule ^(.*)/corporation-areaid-([0-9]+)-page-([0-9]+)\.html$ $1/corporation\.php\?areaid=$2&page=$3
  • RewriteRule ^(.*)/corporation-catid-([0-9]+)-page-([0-9]+)\.html$ $1/corporation\.php\?catid=$2&page=$3
  • RewriteRule ^(.*)/corporation-catid-([0-9]+)-areaid-([0-9]+)\.html$ $1/corporation\.php\?catid=$2&areaid=$3
  • RewriteRule ^(.*)/corporation-catid-([0-9]+)-areaid-([0-9]+)-page-([0-9]+)\.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-([0-9]+)\.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-([0-9]+)\.html$ $1/about\.php\?part=faq&id=$2
  • RewriteRule ^(.*)/friendlink\.html$ $1/about\.php\?part=friendlink
  • RewriteRule ^(.*)/space/([a-z0-9\-\_]+)/$ $1/space\.php\?user=$2
  • RewriteRule ^(.*)/store-([0-9]+)/$ $1/store\.php\?uid=$2
  • RewriteRule ^(.*)/store-([0-9]+)/album.html$ $1/store\.php\?uid=$2&part=album
  • RewriteRule ^(.*)/store-([0-9]+)/album-page-([0-9]+).html$ $1/store\.php\?uid=$2&part=album&page=$3
  • RewriteRule ^(.*)/store-([0-9]+)/contactus.html$ $1/store\.php\?uid=$2&part=contactus
  • RewriteRule ^(.*)/store-([0-9]+)/comment.html$ $1/store\.php\?uid=$2&part=comment
  • RewriteRule ^(.*)/store-([0-9]+)/comment-page-([0-9]+).html$ $1/store\.php\?uid=$2&part=comment&page=$3
  • RewriteRule ^(.*)/store-([0-9]+)/comment-good-page-([0-9]+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=good
  • RewriteRule ^(.*)/store-([0-9]+)/comment-soso-page-([0-9]+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=soso
  • RewriteRule ^(.*)/store-([0-9]+)/comment-bad-page-([0-9]+).html$ $1/store\.php\?uid=$2&part=comment&page=$3&type=bad
  • RewriteRule ^(.*)/store-([0-9]+)/guestbook.html$ $1/store\.php\?uid=$2&part=guestbook
  • RewriteRule ^(.*)/store-([0-9]+)/goods.html$ $1/store\.php\?uid=$2&part=goods
  • RewriteRule ^(.*)/store-([0-9]+)/([a-z]+)/page-([0-9]+).html$ $1/store\.php\?uid=$2&part=$3&page=$4
  • RewriteRule ^(.*)/store-([0-9]+)/document-typeid-([0-9]+).html$ $1/store\.php\?uid=$2&part=document&typeid=$3
  • RewriteRule ^(.*)/store-([0-9]+)/document-id-([0-9]+).html$ $1/store\.php\?uid=$2&part=document&id=$3
  • [/I]
  • [/ol]复制代码
  • 回复

    使用道具 举报

    3

    主题

    30

    回帖

    83

    积分

    注册会员

    积分
    83
    发表于 2012-7-25 20:24:21 | 显示全部楼层
    回复

    使用道具 举报

    175

    主题

    1501

    回帖

    3575

    积分

    论坛元老

    积分
    3575
     楼主| 发表于 2012-7-25 20:24:43 | 显示全部楼层

    回味依旧 发表于 2012-7-25 20:24



    http://www.anilcetin.com/convert-apache-htaccess-to-nginx/  求加分

    这个不可以哈
    回复

    使用道具 举报

    3

    主题

    30

    回帖

    83

    积分

    注册会员

    积分
    83
    发表于 2012-7-25 20:24:00 | 显示全部楼层

    qqab 发表于 2012-7-25 20:24



    这个不可以哈

    额   好吧  我也不怎么会 等待其他大牛了
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2025-1-11 22:49 , Processed in 0.016279 second(s), 4 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表