Status
Not open for further replies.

onel0ve

Active Member
1,275
2010
64
0
To implement your vBulletin site, follow these steps:

You need to repeat this step for images, javascript and other shared media as follows:


Search for Text src="clear.gif"

Replace with Text src="http://cdn.mywebsite.com/clear.gif"

Search for Text src="customavatars/

Replace with Text src="http://cdn.mywebsite.com/customavatars/

Search for Text src="customprofilepics/

Replace with Text src="http://cdn.mywebsite.com/customprofilepics/

Search for Text src="images/

Replace with Text src="http://cdn.mywebsite.com/images/

Search for Text url("clientscript

Replace with Text url("http://cdn.mywebsite.com/clientscript

Search for Text src="clientscript/

Replace with Text src="http://cdn.mywebsite.com/clientscript/

Search for Text href="clientscript/

Replace with Text href="http://cdn.mywebsite.com/clientscript/

Search for Text url(./images/

Replace with Text url(http://cdn.mywebsite.com/images/

Search for Text url(images/

Replace with Text url(http://cdn.mywebsite.com/images/

Search for Text var imgdir_misc = "images/misc";

Replace with Text var IMGDIR_MISC ="http://cdn.mywebsite.com/images/misc";


Avatars & Pictures - Storage Type

  • Visit Avatars > Storage Type and set them as follows to match your above CDN rules by moving all of them to file systems:
    • Avatars are currently being served from the filesystem at ./customavatars
    • Profile pictures are currently being served from the filesystem at ./customprofilepics
    • Signature pictures are currently being served from the filesystem at ./signaturepics
How Do I Test Images And Other Media Files Are Cached Or Not By CDN? Use curl to test HTTP headers (look for Etags, max-age and Expires headers):
$ curl -I 'http://cdn.mywebsite.com/clientscript/vbulletin_important.css?v=385'
$ curl -I http://cdn.mywebsite.com/customavatars/avatarx_y.gif
 
Last edited:
7 comments
Replacements are better, only 3 replacement make good use of cdn; like 90% of stuffs from ur host are covered with this replacements.

"clientscript/
replace with
"http://cdn.mywebsite.com/clientscript/

"images/
replace with
"http://cdn.mywebsite.com/images/

(images/
replace with
(http://cdn.mywebsite.com/images/
 
@Nick
He copy-pasted from some site... But it does work, even though I prefer those changes to be permanent, and not just replacement.
ya :D from vb.org
i was searching it for my forum .
now share it to all :P.
hope this will helps every one
 
Status
Not open for further replies.
Back
Top