yunjob
V2EX  ›  问与答

wordpress 给独立页面绑定二级域名

  •  
  •   yunjob · Jan 2, 2016 · 4818 views
    This topic created in 3797 days ago, the information mentioned may be changed or developed.
    环境: LNMP(CentOS 、 Nginx 、 MySQL 、 PHP)
    模板: Wordpress4.4

    网址: http://www.ponote.com
    新做了一个导航页面(新建的 page.php 模板): http://www.ponote.com/hao
    想要在该导航页面绑定 http://hao.ponote.com 二级域名,请问该如何操作

    现在用 nginx 伪静态做了跳转,但 http://hao.ponote.com 跳转到 http://www.ponote.com/hao 之后,还是显示为 http://www.ponote.com/hao ,怎么才能跳转后显示 http://hao.ponote.com

    rewrite:
    listen 80;
    server_name hao.ponote.com;
    index index.html index.htm index.php default.html default.htm default.php;
    root /home/wwwroot/ponote;
    rewrite ^/ http://www.ponote.com/hao;
    5 replies    2016-01-03 01:14:17 +08:00
    Daddy
        1
    Daddy  
       Jan 2, 2016 via Android
    为什么不先找插件?我记得有分类页面转二级域名
    Pixel
        2
    Pixel  
       Jan 2, 2016
    关注过这个网站。界面看起来是 wordpress 之前国内一款老版的 XIU 主题~
    arnofeng
        3
    arnofeng  
       Jan 2, 2016 via Android
    你需要反代。
    tammy
        4
    tammy  
       Jan 3, 2016
    r#3 @arnofeng 同,看到的同事马上想到反代够快够渐变,这类绑域名的通杀
    yylzcom
        5
    yylzcom  
       Jan 3, 2016
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5341 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 08:58 · PVG 16:58 · LAX 01:58 · JFK 04:58
    ♥ Do have faith in what you're doing.