谁能帮我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伪静态谢谢 展开
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伪静态谢谢 展开
展开全部
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;
好了 你试试吧
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询