As the title says, looking for the best way to integrate a cdn with EE.
I currently have a cdn account with MaxCDN and my solutions was to change the site_url within the configuration site to my cname address http://cdn.mysite.com.
From there I added a global variable and named it {root_url} that was my sites original address http://www.mysite.com.
Then just went and changed all menu links and such to use the global variable instead of the {site_url}.
This does work, however where I'm running into problems is the pagination. The pagination uses the site_url, which is now the cdn.
How are other people using a cdn with their EE install? Is there a better solution? Although this works, it seems clunky to me. Would really like to get some others advice/perspective.
I've been able to relate previous and next entries as well when viewing a blog post for example using this:
<ul class="pager">
{exp:channel:prev_entry channel="blog"}
<li class="previous">
<a href="{root_url}blog/view/{url_title}">← {title}</a></a>
</li>
{/exp:channel:prev_entry}
{exp:channel:next_entry channel="blog"}
<li class="next">
<a href="{root_url}blog/view/{url_title}">{title} →</a>
</li>
{/exp:channel:next_entry}
</ul>
But I've not been able to figure out how to change the pagination links to use the same {root_url} prefix. It seems you can completely customize the output and look of the pagination but not the links?
{cdn_url}
in your templates when you need to call stuff from the CDN?