How to integrate Hostry CDN with Magento
The main advantage of Magento is that it can use CDN functions without 3rd party plugins.
How to set up a CDN with Magento native support?
- Log into the admin control panel of your website.
- Navigate to System ⇒ Configuration.
- Under General select Web option.
- Proceed to Unsecure settings tab.
Now use these setup instructions:
Set the Base URL of your site so that the domain was in the following format:
http://www.your-domain.net
Base link URL leave as default: {{unsecurebaseurl}}
Base Skin URL: http://cdn.your-domain.net/skin/
Base Media URL: http://cdn.your-domain.net/media/
Base Java Script URL: http://cdn.your-domain.net/js/
Do not forget to replace cdn.your-domain.net with your current CDN URL!
Please note that when you use CDN, sometimes JavaScript may not work properly, if CDN is not in your subdomain.
When you officially use a CDN on your website, you can examine whether URLs are rewritten by loading your pages and checking their source code.