Answer the question
In order to leave comments, you need to log in
Is it possible to do CDN routing via .htaccess?
There is an almost static HTML site, a lot of pages, a lot of pictures both in CSS backgrounds and in img src="xxxx"
It's not realistic to remake all the URLs by hand, but I want to send them through CloudFront from Amazon
Is there any point in such a construction in . htaccess
RewriteCond %{HTTP_USER_AGENT} !^Amazon\ Cloudfront$ [NC]
RewriteRule ^images/(.+)$ https://SomeId.cloudfront.net/images/$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question