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 www.example.com.au.s3-website-ap-southeast-2.amazonaws.com
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/.