apache伪静态转nginx规则
帮忙把以下apache伪静态转nginx规则,请勿用在线转换的我试过了。谢谢。<IfModulemod_rewrite.c>RewriteEngineOnRewriteR...
帮忙把以下apache伪静态转nginx规则,请勿用在线转换的我试过了。谢谢。<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/thread-htm-tid-(\d+)-(.*).html $1/thread.php?fid=$2
RewriteRule ^(.*)/read-htm-tid-(\d+)-(.*).html $1/read.php?tid=$2
RewriteRule ^(.*)/commtopics-(\d+)-(.*)$ $1/thread.php?fid=$2&page=$3
RewriteRule ^(.*)/commtopics-(.*)$ $1/thread.php?fid=$2&page=$3
RewriteRule ^(.*)/article-(\d+)-(\d+)-(.*).html$ $1/read.php?tid=$2&page=$3&fpage=$4
RewriteRule ^(.*)/article-(\d+)-(.*).html$ $1/read.php?tid=$2&page=$3
RewriteRule ^(.*)/article-(.*).html$ $1/read.php?tid=$2RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2
</IfModule> 展开
RewriteEngine On
RewriteRule ^(.*)/thread-htm-tid-(\d+)-(.*).html $1/thread.php?fid=$2
RewriteRule ^(.*)/read-htm-tid-(\d+)-(.*).html $1/read.php?tid=$2
RewriteRule ^(.*)/commtopics-(\d+)-(.*)$ $1/thread.php?fid=$2&page=$3
RewriteRule ^(.*)/commtopics-(.*)$ $1/thread.php?fid=$2&page=$3
RewriteRule ^(.*)/article-(\d+)-(\d+)-(.*).html$ $1/read.php?tid=$2&page=$3&fpage=$4
RewriteRule ^(.*)/article-(\d+)-(.*).html$ $1/read.php?tid=$2&page=$3
RewriteRule ^(.*)/article-(.*).html$ $1/read.php?tid=$2RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2
</IfModule> 展开
2013-09-18
展开全部
rewrite ^/(.*)/thread-htm-tid-(\d+)-(.*).html /;
rewrite ^/(.*)/read-htm-tid-(\d+)-(.*).html /;
rewrite ^/(.*)/commtopics-(\d+)-(.*)$ /$1/thread.php?fid=$2&page=$3;
rewrite ^/(.*)/commtopics-(.*)$ /;
rewrite ^/(.*)/article-(\d+)-(\d+)-(.*).html$ /;
rewrite ^/(.*)/article-(\d+)-(.*).html$ /;
rewrite ^/(.*)/article-(.*).html$ /;
rewrite ^/(.*)-htm-(.*)$ /$1.php?$2;
rewrite ^/(.*)/simple/([a-z0-9\_]+\.html)$ /$1/simple/index.php?$2;
rewrite ^/(.*)/read-htm-tid-(\d+)-(.*).html /;
rewrite ^/(.*)/commtopics-(\d+)-(.*)$ /$1/thread.php?fid=$2&page=$3;
rewrite ^/(.*)/commtopics-(.*)$ /;
rewrite ^/(.*)/article-(\d+)-(\d+)-(.*).html$ /;
rewrite ^/(.*)/article-(\d+)-(.*).html$ /;
rewrite ^/(.*)/article-(.*).html$ /;
rewrite ^/(.*)-htm-(.*)$ /$1.php?$2;
rewrite ^/(.*)/simple/([a-z0-9\_]+\.html)$ /$1/simple/index.php?$2;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是一家提供动态代理服务器服务的企业,旨在帮助用户更好地管理网络访问和安全。以下是一些关于StormProxies的IP动态代理服务的特点:1. 高匿名性:StormProxies的动态代理服务器具有高匿名性,可以有效...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询