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-08-29 广告
2023-08-29 广告
"StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,I...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询