.htaccess - CDN Image Redirects (avoiding redirect loop w/ htaccess) -
I have everything and the ADS CloudFront is running on the CDN, the only issue I've done in relation to my image files They display all of them in the desired form, but do not have to redirect older versions.
For example: An image @ http://domain.com/images/image .jpg
directed and http: // Cdn.domain.com/images/image.jpg
, but without the subdomain, the previous version is also accessible.
I know that it looks a bit tedious, but all the "juice" going on the last image is not going to the new image because it is not compelling that redirect, ideally I have ever I put http://domain.com/images/image.jpg
in the browser, I want to redirect it to http://cdn.domain.com/images/ image .jpg
. I will make every single loop found online, because it can not read domain.com
before.
I know that this is a solid way to redirect to HTCS, which is for JPEGS in the images folder which already has the cdn
are not redirected to subdomains, but I 'll find it anywhere online Any help would be very appreciated.
Try adding this document to the root domain.com
Reviving On RewriteCand% {HTTP_HOST} ^ domain \ .com $ [nc] Rewritable ^ (. + \. (Png | gif | jpe? G)) $ http: // cdn .domain.com / $ 1 [L, R = 301]
Comments
Post a Comment