Redirect S3 subfolder to another domain with Cloudfront
<p>I have a static showcase website hosted on S3 and using CloudFront, and an online shop (Prestashop) and a blog (Wordpress), both hosted on OVH servers.</p>

<p>I want to make a hidden redirection on two subfolders of my static website so it acts like my 3 websites are on the same host, using the following pattern :</p>

<ul>
<li>mysite.com/ --> normal behaviour</li>
<li>mysite.com/blog/ --> myblog.com/</li>
<li>mysite.com/store/ --> mystore.com/</li>
</ul>

<p>Of course, I need every request to be handled that way, eventually having something like that :</p>

<p><strong>mysite.com/store</strong>/fr/1-myproduct.html</p>

<p>returns what</p>

<p><strong>mystore.com</strong>/fr/1-myproduct.html</p>

<p>would have returned.</p>

<p>This seems really tricky, since I've found no real solution to my problem, and at this point I doubt it may even be possible to do such a thing.
I considered using a proxy but wouldn't that be like using a sledgehammer to get rid of a fly ?</p>

<p>I have searched for any possible redirection and I was only able to find subdomain/domain redirections...</p>

<p>So my question would be <strong>"How can I do that ?"</strong>
But right now I'm wondering <strong>"Can one do that ?"</strong></p>

<hr>

<p>P.S : It's my first post ever, I'm used to search for a long time before posting and I always end up finding a solution, except for now. Any suggestion is welcome.</p>