Home > Backend Development > PHP Tutorial > 关于 nginx 重定向问题

关于 nginx 重定向问题

WBOY
Release: 2016-06-06 20:38:18
Original
1085 people have browsed it

怎么让一个 www.djg.com?admin&a=s123456&b=sss1234 指向的页面 用yzzf.xz.com 表示

回复内容:

怎么让一个 www.djg.com?admin&a=s123456&b=sss1234 指向的页面 用yzzf.xz.com 表示

<code>server {
    server_name yzzf.xz.com;
    location / {
        return 301 http://www.djg.com?admin&a=s123456&b=sss1234;
    }
}
</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template