Welcome Guest, Not a member yet? Register   Sign In
How to implement CDN with CI?
#1

[eluser]arunaday[/eluser]
I would like to know how CI can be implemented for CDN. Any help would be appreciated.
#2

[eluser]Aken[/eluser]
The two have nothing to do with each other. CDNs deliver static resources like images, CSS, etc. All you would need to change in CodeIgniter is the HTML that outputs where those static files come from.
#3

[eluser]arunaday[/eluser]
Hi Aken,

How the urls of the html sections can be changed? Can i use .htacces file to reference the image and css folders to point to cdn server? Is there any other way?

Thanks
#4

[eluser]arunaday[/eluser]
If i want all the images,css and html to be a part of cdn then what will be the approach?
#5

[eluser]CroNiX[/eluser]
I create a cname DNS record to point to the CDN server. Then, urls that serve CDN content are just http://cdn.mysite.com/image.jpg, otherwise the URL will point to your CDN directly.
http://url-of-your-cdn.com/images/image.jpg or whatever is required from your CDN.

You probably don't want to serve HTML via a cdn as their IP address can change depending on what local server (relative to the visitors location) the content is being served up from, and you can get duplicate content problems in google. This isn't a problem with images/videos.




Theme © iAndrew 2016 - Forum software by © MyBB