立即注册  找回密码
 立即注册
CeraNetworksBGVM服务器主机交流会员请立即修改密码Sharktech防护
查看: 127|回复: 3

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

[复制链接]

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

[复制链接]

95

主题

358

回帖

2083

积分

金牌会员

积分
2083
qqab

95

主题

358

回帖

2083

积分

金牌会员

积分
2083
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]复制代码
  • 回复

    使用道具 举报

    12

    主题

    146

    回帖

    416

    积分

    中级会员

    积分
    416
    回味依旧

    12

    主题

    146

    回帖

    416

    积分

    中级会员

    积分
    416
    2012-7-25 20:24:21 | 显示全部楼层
    回复

    使用道具 举报

    95

    主题

    358

    回帖

    2083

    积分

    金牌会员

    积分
    2083
    qqab 楼主

    95

    主题

    358

    回帖

    2083

    积分

    金牌会员

    积分
    2083
    2012-7-25 20:24:43 | 显示全部楼层

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



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

    这个不可以哈
    回复

    使用道具 举报

    12

    主题

    146

    回帖

    416

    积分

    中级会员

    积分
    416
    回味依旧

    12

    主题

    146

    回帖

    416

    积分

    中级会员

    积分
    416
    2012-7-25 20:24:00 | 显示全部楼层

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



    这个不可以哈

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

    使用道具 举报

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

    本版积分规则

    Archiver|小黑屋|HS2V主机综合交流论坛

    GMT+8, 2025-3-18 18:09 , Processed in 0.019253 second(s), 5 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

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