dimanche 25 janvier 2015

Redirect subfolder URL but keep original domain name

Following below URLs, I successfully redirect website http://www.example.com (I bought from AWS Route 53, real domain name is replaced) to http://abc.wix.com/xyz/ via http://ift.tt/1D7wJFB


Refer: Set up DNS based URL forwarding in Amazon Route53 and Redirect subdomain URL to URL subdirectory on Amazon AWS


Redirection rules:



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


The problem is, when I click http://www.example.com, it redirects the url to http://abc.wix.com/xyz/ in browser and show the web content.


What I need is: in the browser, should be always showed as http://www.example.com , but contents are in http://abc.wix.com/xyz/.





Aucun commentaire:

Enregistrer un commentaire