开发者社区> 问答> 正文

一个nginx rewrite 配置问题 - nginx报错

"想把 www.xxx.com/index.php?xxxxxxxxxx重定向到 <span style=""font-size:13.3333px;""> www.xxx.com/other.php?xxxxxxxxxx,这个怎么弄"

展开
收起
montos 2020-06-03 21:55:11 749 0
1 条回答
写回答
取消 提交回答
  • "location index.php {
        access_log off;

        rewrite (.*) http://www.xxx.com/other.php$1 permanent;

    }
    ######回复 @红薯 : 还是无限重定向######回复 @simaguo : 那个 $1 去掉先把######试了下不行耶,两个xxx是同一域名,会无限重定向下去"
    2020-06-03 22:26:26
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
《Nginx 代理系统常用手册》 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载