a20840946
V2EX  ›  问与答

付费求指定区域做 301 跳转的方法!!!

  •  
  •   a20840946 · Oct 9, 2015 · 3473 views
    This topic created in 4045 days ago, the information mentioned may be changed or developed.

    因为特殊原因,针对某几个省市要进行域名的 301 跳转。其他省市正常访问,请问可以做到吗? 用的是 amh4.2 DZ3.2

    有会的 PM 我啊。。。

    6 replies  •  2015-10-10 09:51:33 +08:00
    yachiyo
    yachiyo
    Oct 9, 2015 via Android
    1
    这个判断下 IP 段就可以了吧,还有 amh 给出来有啥用,说明 nginx 还是 Apache 环境。

    https://laracasts.com/discuss/channels/forge/allow-certain-ip-addresses-and-redirect-the-rest-in-nginx-and-forge
    http://outofmemory.cn/code-snippet/3393/nginx-deny-ip-or-deny-network-subnets

    最后,提问的智慧。
    xfspace
    xfspace
    Oct 10, 2015 via Android
    2
    国内 DNS 有“智能解析”
    还有 V2EX 是没有短消息功能的。。
    d8
    d8
    Oct 10, 2015 via Android
    3
    @CloudXNS 出来介绍套餐
    MaiCong
    MaiCong
    Oct 10, 2015 via iPhone
    4
    暴力点就在代码层判断 IP 归属地,符合条件的就作 301 跳转。
    KexyBiscuit
    KexyBiscuit
    Oct 10, 2015 via Android
    5
    拿这笔钱去买个优秀的 IP 数据库,回来做判断就行。
    CloudXNS
    CloudXNS
    Oct 10, 2015
    6
    @d8

    明显用 CloudXNS 可完美轻松的解决啊。。传送门: https://www.cloudxns.net
    (当然前提是楼主的域名备案了

    一个账户下免费 10 条跳转记录,超出部分以后需要购买,价格待定。
    不过 10 条应该够用了吧~
    不够的话,现在注册账号还有机会能免费添加更多。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1459 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 18:08 · PVG 02:08 · LAX 10:08 · JFK 13:08
    ♥ Do have faith in what you're doing.