1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
You should be able to do this in CloudFront using multiple CacheBehaviors and Origins. The default CacheBehavior stays as now, pointing to your S3 Origin. Add a 2nd CacheBehavior with a PathPattern "blog/*" pointing to the Custom Origin URL for your webflow blog.
Contenus pertinents
- demandé il y a un an
- demandé il y a 6 mois
- demandé il y a un an
- demandé il y a un mois
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
Hey @skinsman, thank you for the suggestion! I tried implementing this however when I visit https://mysite.com/blog, it redirects to https://blog.mysite.com/blog. What I want to do is have the blog actually render under mysite.com/blog but maybe that's not possible unless I'm self hosting the assets?
To get the above working I created a CacheBehavior with PathPattern: blog/* and custom origin with domain blog.mysite.com
Borg, you did well and it should rewrite, not redirect. So the user should still see https://mysite.com/blog.
This is a standard CloudFront feature.