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="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
$ curl -I 'http://cdn.mywebsite.com/clientscript/vbulletin_important.css?v=385'
$ curl -I http://cdn.mywebsite.com/customavatars/avatarx_y.gif
- Open admincp by visiting http://mywebsite.com/admincp/ > Select Styles & Templates > Replacement Variable Manager:
- Click on [Add New Replacement Variable] link and set it as follows:
- Set Search for Text to href="clientscript
- Set Replace with Text to href="http://cdn.mywebsite.com/clientscript
You need to repeat this step for images, javascript and other shared media as follows:
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
$ curl -I 'http://cdn.mywebsite.com/clientscript/vbulletin_important.css?v=385'
$ curl -I http://cdn.mywebsite.com/customavatars/avatarx_y.gif
Last edited: