重定向子文件夹URL但保留原始域名

时间:2015-01-25 23:43:41

标签: web-services redirect amazon-web-services amazon-route53

根据以下网址,我成功将网站http://www.example.com(我从AWS Route 53购买,真实域名已被替换)重定向到http://abc.wix.com/xyz/,通过www.example.com.au.s3-website-ap-southeast-2.amazonaws.com

参考:Set up DNS based URL forwarding in Amazon Route53Redirect subdomain URL to URL subdirectory on Amazon AWS

重定向规则:

<RoutingRules>
    <RoutingRule>
        <Redirect>
            <Protocol>http</Protocol>
            <HostName>abc.wix.com</HostName>
            <ReplaceKeyPrefixWith>xyz/</ReplaceKeyPrefixWith>
            <HttpRedirectCode>301</HttpRedirectCode>
        </Redirect>
    </RoutingRule>
</RoutingRules>

问题是,当我点击http://www.example.com时,它会将网址重定向到浏览器中的 http://abc.wix.com/xyz/ 并显示网络内容。

我需要的是:在浏览器中,应始终显示为 http://www.example.com ,但内容位于http://abc.wix.com/xyz/

0 个答案:

没有答案
相关问题