【问题标题】:Trouble 301 redirecting pages from old Wix site to new site故障 301 将页面从旧 Wix 站点重定向到新站点
【发布时间】:2016-06-07 09:23:52
【问题描述】:

我客户的原始网站是在 Wix 上构建的,而我在新服务器上设计并构建了一个新网站。

我正在尝试将一些页面从旧网站 301 重定向到新网站上的对应页面,但它似乎不想正常工作,因为每个旧 URL 都直接进入主页。

示例:

旧网址:example.com/#!clients/c1pen

新网址:example.com/stay-with-us

我在 .htaccess 中设置了重定向:

重定向 301 /#!clients/c1pen /stay-with-us

谁能帮我解释一下?

【问题讨论】:

    标签: .htaccess redirect velo


    【解决方案1】:

    Hash-location (http://someurl/#hash-location) 通常寻址 html 页面中的锚点,并且对服务器重写规则不可见。因此匹配器#!clients/c1pen 永远不会匹配。见'hash' url rewrite in .htaccess

    【讨论】:

    猜你喜欢
    • 2017-01-08
    • 2019-07-03
    • 1970-01-01
    • 1970-01-01
    • 2017-07-25
    • 2013-10-25
    • 2010-11-28
    • 1970-01-01
    • 2015-04-06
    相关资源
    最近更新 更多