just finished the CDN set up for our magento store. Some images/css/js files are loaded fine from cdn server. But some cdn versions redirect back to our hosting.
I mean some files can be accessed on cdn - example
http://cdn.domain.com/media/wysiwyg/logo-dark.png
Some redirect, example:
http://cdn.domain.com/skin/frontend/rwd/green/images/media/logo.png
redirects to
http://www.domain.com/skin/frontend/rwd/green/images/media/logo.png
What can be the reason for this?
The bytes by domain shows that about 40% sourced by cdn.domain.com and 55% by domain.com. I guess it's not like it supposed to work?
Here are the settings.
Found the problem. It was caused by htaccess code:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ http://www.domain.com/.com/$1 [R=301,L]
This code supposed to redirect /index.php/ to route. Why does it mess around with cdn.domain.com?