谁能帮我apache伪静态转换nginx伪静态谢谢

<IfModulemod_rewrite.c>RewriteEngineonRewriteRule^index\.html$index.phpRewriteRule^ab... <IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule ^index\.html$ index.php

RewriteRule ^about\.html$ about.php
RewriteRule ^about_([0-9]{1,})\.html$ about.php?id=$1

RewriteRule ^news\.html$ news.php
RewriteRule ^news_([0-9]{1,})_([0-9]{1,})\.html$ news.php?tid=$1&page=$2
RewriteRule ^news_view_([0-9]{1,})\.html$ news_view.php?id=$1

RewriteRule ^works\.html$ works.php
RewriteRule ^works_([0-9]{1,})_([0-9]{1,})\.html$ works.php?tid=$1&page=$2
RewriteRule ^works_view_([0-9]{1,})\.html$ works_view.php?id=$1

RewriteRule ^love\.html$ love.php
RewriteRule ^love_([0-9]{1,})_([0-9]{1,})\.html$ love.php?tid=$1&page=$2
RewriteRule ^love_view_([0-9]{1,})\.html$ love_view.php?id=$1

RewriteRule ^scene\.html$ scene.php
RewriteRule ^scene_([0-9]{1,})_([0-9]{1,})\.html$ scene.php?tid=$1&page=$2
RewriteRule ^scene_view_([0-9]{1,})\.html$ scene_view.php?id=$1

RewriteRule ^quote\.html$ quote.php
RewriteRule ^quote_([0-9]{1,})_([0-9]{1,})\.html$ quote.php?tid=$1&page=$2
RewriteRule ^quote_view_([0-9]{1,})\.html$ quote_view.php?id=$1

RewriteRule ^order\.html$ order.php

RewriteRule ^review\.html$ review.php
RewriteRule ^review_([0-9]{1,})_([0-9]{1,})\.html$ review.php?tid=$1&page=$2

RewriteRule ^qqchat\.htm$ qqchat.php

ErrorDocument 404 /Erro/404.html

谁能帮我apache伪静态转换nginx伪静态谢谢
展开
 我来答
FoxTeam
2013-06-27 · TA获得超过122个赞
知道小有建树答主
回答量:475
采纳率:0%
帮助的人:240万
展开全部
	rewrite ^/index.html$ /index.php;
rewrite ^/about.html$ /about.php;
rewrite ^/about_([0-9]{1,}).html$ /about.php?id=$1;
rewrite ^/news.html$ /news.php;
rewrite ^/news_([0-9]{1,})_([0-9]{1,}).html$ /news.php?tid=$1&page=$2;
rewrite ^/news_view_([0-9]{1,}).html$ /news_view.php?id=$1;
rewrite ^/works.html$ /works.php;
rewrite ^/works_([0-9]{1,})_([0-9]{1,}).html$ /works.php?tid=$1&page=$2;
rewrite ^/works_view_([0-9]{1,}).html$ /works_view.php?id=$1;
rewrite ^/love.html$ /love.php;
rewrite ^/love_([0-9]{1,})_([0-9]{1,}).html$ /love.php?tid=$1&page=$2;
rewrite ^/love_view_([0-9]{1,}).html$ /love_view.php?id=$1;
rewrite ^/scene.html$ /scene.php;
rewrite ^/scene_([0-9]{1,})_([0-9]{1,}).html$ /scene.php?tid=$1&page=$2;
rewrite ^/scene_view_([0-9]{1,}).html$ /scene_view.php?id=$1;
rewrite ^/quote.html$ /quote.php;
rewrite ^/quote_([0-9]{1,})_([0-9]{1,}).html$ /quote.php?tid=$1&page=$2;
rewrite ^/quote_view_([0-9]{1,}).html$ /quote_view.php?id=$1;
rewrite ^/order.html$ /order.php;
rewrite ^/review.html$ /review.php;
rewrite ^/review_([0-9]{1,})_([0-9]{1,}).html$ /review.php?tid=$1&page=$2;
rewrite ^/qqchat.htm$ /qqchat.php;

好了 你试试吧 

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式