Magento

Thijs de Zoete

Before integrating with Magento, you must have completed our quick-start guide.

Step 1: Configuration

  1. Log into your Magento control panel
  2. Go to Configuration, under the System tab
  3. Click General in the menu on the left, then Web

Magento-config

If you intend to use HTTP proceed to Step 2, otherwise Step 3 for HTTPS.

 

Step 2: Setting up HTTP

  1. Click the Unsecure section in Web
  2. Enter the following information:
    • Base URL: your site URL
      e.g. http://www.example.com
    • Base Link URL: this field should be pre-populated with your Base URL
    • Base Skin URL: your CNAME or alias, followed by the skin folder
      e.g. http://<label>.cdn.warpcache.net/skin/ or http://cdn.example.com/skin/
    • Base Media URL: your CNAME or alias, followed by the media folder
      e.g. http://<label>.cdn.warpcache.net/media/ or http://cdn.example.com/media/
    • Base JavaScript URL: your CNAME or alias, followed by the JavaScript folder
      e.g. http://<label>.cdn.warpcache.net/js/ or http://cdn.example.com/js/

Note that in some cases JavaScript might not run if the CDN is not in your subdomain. Should this issue occur, change the Base JavaScript URL to your origin server.

Unsecure

  1. Click the orange Save Config button

Step 3: Setting up HTTPS

In order to use HTTPS, create a support ticket to enable SSL for your account – this feature is not yet available in our Control Panel.

  1. Click the Secure section in Web
  2.  Enter the following information:
    • Base URL: your site URL
      e.g. https://www.example.com
    • Base Link URL: this field should be pre-populated with your Base URL
    • Base Skin URL: your CNAME or alias, followed by the skin folder
      e.g. https://<label>.cdn.warpcache.net/skin/ or https://cdn.example.com/skin/
    • Base Media URL: your CNAME or alias, followed by the media folder
      e.g. https://<label>.cdn.warpcache.net/media/ or https://cdn.example.com/media/
    • Base JavaScript URL: your CNAME or alias, followed by the JavaScript folder
      e.g. https://<label>.cdn.warpcache.net/js/ or https://cdn.example.com/js/

Note that in some cases JavaScript might not run if the CDN is not in your subdomain. Should this issue occur, change the Base JavaScript URL to your origin server.

  1. Set Use Secure URL in Frontend to Yes
  2. Set Use Secure URL in Admin to Yes
  3. Don’t change Offloader header

Secure

  1. Click the orange Save Config button

Step 4: Testing

Verify whether the URL rewrite was successful by checking the HTML code of your site:

  1. Search for favicon.ico
  2. If the rewrite was successful, you will find <label>.cdn.warpcache.net/favicon.ico or cdn.example.com/favicon.ico in your HTML code