3

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/.

Community
  • 1
  • 1
BMW
  • 42,880
  • 12
  • 99
  • 116
  • 3
    this isn't an S3 problem; the destination server would need to respond as example.com. Alternately, you can load the contents in a frame or load the body html from example.com and load the rest of the assets from wix.com. – tedder42 Jan 26 '15 at 00:31

0 Answers0