The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Serving static content from cookieless domain - need help
Hello
I have a problem with optimizing my vBulletin 4.0.3 Forum. my forum runs on Patientenfragen.net - wir haben die Antworten I have created 6 subdomains for static content (Images only currently) http://static1.patientenfragen.net/ http://static2.patientenfragen.net/ I have set the cookie domain for my forum in the acp cookie settings to use patientenfragen.net as cookie domain instead of .patientenfragen.net In my understanding this should exclude the subdomains from using the vbulletin cookie. On the subdomains there is no single html nor php file. Only the images and a htaccess with the following content: Code:
AddDefaultCharset Off FileETag None ExpiresActive On <IfModule mod_expires.c> ExpiresByType image/gif A2592000 ExpiresByType image/png A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/x-icon A2592000 ExpiresByType text/plain A2592000 ExpiresByType text/css A2592000 ExpiresByType application/x-javascript A2592000 ExpiresByType application/pdf A2592000 ExpiresByType application/x-shockwave-flash A2592000 </IfModule> The cookies still served for .patientenfragen.net are: - lastvisit - np_notices_displayed - lastactivity - sessionhash - cpsession - userid - password as well as the google analytics cookies - _utma - _utmb - _utmc - _utmz I use the analytics code suggested by digitalpoint and changed .domain.com to domain.com: Code:
<script type="text/javascript"> google_analytics_uacct = "UA-XXXXX-X";google_analytics_domain_name = "patientenfragen.net";var _gaq = _gaq || [];_gaq.push(['_setAccount', 'UA-XXXXX-X'],['_setDomainName', 'patientenfragen.net'],['_trackPageview']);(function() {var ga = document.createElement('script');ga.type = 'text/javascript';ga.async = true;ga.src = 'http://www.google-analytics.com/ga.js';(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);})(); </script> Best regards StarBuG --------------- Added [DATE]1274025964[/DATE] at [TIME]1274025964[/TIME] --------------- Solved the problem by defining www.patientenfragen.net as cookie domain. Just in case some people have the same issue If anyone thinks that the above move is not a good Idea I am all ears, currently I can't see a downside to it StarBuG |
#2
|
|||
|
|||
hey starbug how you did that ? i"m trying to do the same with my vb4 + vbseo do you have any input on this ?
|
#3
|
|||
|
|||
but you have to be careful messing with cookies like that it could lock you out of your site,
the place to do it is in admincp/settings/options/cookies and http settings , i think |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|