PDA

View Full Version : Step by Step guide to speed up your VB4 OR VB3


extreme-gaming
28 Jul 2011, 21:53
There are several steps to improve your page loading speed. I will go over a few steps that will improve your site's loading time.

Step 1: Tweak your htaccess.
Open the htaccess file in your forum root and add the following below any url rewrite rules you may have from:
Vbulletin 3 or 4 with VBSEO installed
VB4 Forum Classic
VB4 Suite
VB3 by itself

This covers the following Pagespeed Rules.

Leverage browser caching
Specify a cache validator
Enable gzip compression

Make the following changes in your admincp



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



This helps to cache nearly any file type that you may add in your attachment options (if you allow people to upload music files, zip files, rar files etc.. see the list lol)

*some people report login problems, I have posted below what works for me.
http://www.vbulletin.org/forum/showthread.php?t=267588#3



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Step 2: Combine Javascript and Minify Javascript & CSS and Minify HTML.
Not compatible with VB3

This covers the following PageSpeed Rules:

Minify HTML
Minify JavaScript
Minify CSS
Combine external CSS
Combine external JavaScript



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Step 3: Optimize images
There is no more need to do this for vb4 packages unless you wish to do this on other images such as avatars, custom buttons, attachments, gallery uploads etc.

This covers the following PageSpeed Rules:

Optimize Images

If you have access to Visual Studio 2010 (grab the trial edition here (http://www.microsoft.com/visualstudio/en-us/try) which should be compatible with the addon), you can complete this step in just a few clicks using this addon
http://visualstudiogallery.msdn.microsoft.com/a56eddd3-d79b-48ac-8c8f-2db06ade77c3?SRC=VSIDE



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Step 4: Add CSS Sprites.
Not compatible with VB3

This covers the following PageSpeed Rules:

Combine images using CSS sprites



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Step 5: Use a CDN

This is an optional step. Instructions can be found here (http://www.vbulletin.org/forum/showthread.php?p=2226144).

Optional tweaks:

Install cloudflare to help deliver files.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Remove a css request (results in a 404 anyways from gtmetrix tests)

Do not remove if you have custom code from an addon or your own custom code.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Here's one additional trick to help improve your seo btw:
[SEO Enhancement] Replace "reload this page" to the thread title (http://www.vbulletin.org/forum/showthread.php?t=242579) [v1.00]

Enjoy!

Consider linking to us at http://vgchat.info/forum to help show your appreciation, since you'll be saving bandwith, reducing the loading time and thus keeping more visitors who visit your site. And impoving seo as google is now factoring in loading times into it's algorithms.

HMBeaty
28 Jul 2011, 23:48
Just a quick note, for the .htaccess, starting in 4.1.5


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


becomes


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

extreme-gaming
29 Jul 2011, 00:15
If you are using vbulletin 4 with vbseo or if your using vb3.8.x, simply add this below your rewrite rules in your existing htaccess file to enable caching.

This covers the following Pagespeed Rules.

Leverage browser caching
Specify a cache validator
Enable gzip compression

This helps to cache nearly any file type that you may add in your attachment options (if you allow people to upload music files, zip files, rar files etc.. see the list lol)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Fixing login issues with vbulletin 4.

found this recommendation about the login issue that you are experiencing. You may want to set the settings similar:
I would suggest you add your domains to your white list in vb options and then your cookies in vb and photopost set like this
cookie path /
cookie prefix bb
cookie domain .mysite.com

I have found that if I log into the front page the username is not showing at the top. However, if I login when checking a subforum, I am able to login successfully. I was also able to reply to the thread http://vgchat.info/forum/threads/166322-Ocarina-of-Time-3DS-Trailer without issues while being logged in.


Disable vbulletin content caching (since apache is handling that now)

AdminCP > Options > Server Settings and Optimization Options > Disable Content Caching: Set to yes

*Note these changes did not show immediately for me but they did show that they were working for me after roughly 15 minutes.

Dirt Bike Addict
29 Jul 2011, 14:11
Remove a css request (results in a 404 anyways from gtmetrix tests)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Maybe rephrase that to only remove it if you haven't added any custom CSS.

extreme-gaming
29 Jul 2011, 14:12
True, most people however are unaware of it's presence.

Crotan
29 Jul 2011, 19:33
Thanks, will be keeping an eye on this article, I just started tweaking my htaccess file for cache and wanted to look into compression as well.

Question though:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



What is this and where does it display?

Also does this require enabling mod rewrite friendly urls? in the admin control panel

extreme-gaming
29 Jul 2011, 21:00
That set's the etags.

And this part identifies what set it (can be changed) Header set X-Powered-By
Run a test at http://gtmetrix.com, click timeline, expand an element and you will see details about that request including X-Powered-By

No, it doesn't require enabling friendly urls in the admincp. You can still take advantage of the seo friendly urls by selecting this option in your admin cp.

Mod Rewrite Friendly URLs

8thos
30 Jul 2011, 07:27
I set up Cloudflare last week.

I'll do the Supercharged mod today. I already have mod-rewrite friendly urls.

Crotan
30 Jul 2011, 18:49
I think the caching of javascript doesn't play well with the login systen, in Firefox4 and IE9.

People will log in, it'll display the thank you for logging in, and then they will come back to a page that appears to have them not logged in. Either the caching or the compression not sure which.

Chrome seems to be unaffected

8thos
30 Jul 2011, 18:52
I think the caching of javascript doesn't play well with the login systen, in Firefox4 and IE9.

People will log in, it'll display the thank you for logging in, and then they will come back to a page that appears to have them not logged in. Either the caching or the compression not sure which.

Chrome seems to be unaffectedYeah it's doing some weird stuff on my forum. I had to disable twitter style login.

extreme-gaming
30 Jul 2011, 19:06
Hi crotan, is this with vb supercharged installed or did you install the htaccess only? I would have to say caching is the issue here imho.

I think the caching of javascript doesn't play well with the login systen, in Firefox4 and IE9.

People will log in, it'll display the thank you for logging in, and then they will come back to a page that appears to have them not logged in. Either the caching or the compression not sure which.

Chrome seems to be unaffected

Crotan
30 Jul 2011, 19:17
Hi crotan, is this with vb supercharged installed or did you install the htaccess only? I would have to say caching is the issue here imho.

just the htaccess on post #3, since I'm on 4.1.5

extreme-gaming
30 Jul 2011, 19:21
Try removing these lines from it

AddType application/x-javascript .js
ExpiresByType application/x-javascript A31536000

Also, change this line

<FilesMatch "\.(css|js|CSS|JS)$">

to
<FilesMatch "\.(css|CSS)$">

Crotan
30 Jul 2011, 19:29
Seem to still have issues, I took out



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



This is now only.


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



from the original



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



But still this htaccess interferes with the login of users on IE and Firefox :/

extreme-gaming
30 Jul 2011, 19:30
ok. At least now we know that caching isn't the issue here. Actually... first... I want you to clear your browser cache and try again with those lines removed.

Crotan
30 Jul 2011, 19:41
ok. At least now we know that caching isn't the issue here. Actually... first... I want you to clear your browser cache and try again with those lines removed.

Clearing the cache on IE9 (CTRL-R) and on Firefox 4 had no affect.

So something else is interfering?

extreme-gaming
30 Jul 2011, 19:42
Hi, I managed to login as avalanch on firefox 6 over there and didn't experience those issues.

Just tested with IE9, no problems.

Tested with my vb 4.1.3 boards with no htaccess rules removed. Managed to login fine with IE9 & Firefox. (use firefox all the time anyways lol)

Crotan
30 Jul 2011, 19:51
Hi, I managed to login as avalanch on firefox 6 over there and didn't experience those issues.

firefox 5? 4?

Hmmm when you login does the login at the top of the page say Welcome Avalanch, and give you the notification, My profile, settings, Logout?

or stay on the Login, username and password box?

After I login with firefox, I get redirected to the page and won't be logged in but If I refresh I will be.

It's a little wonky.

For instance, If I logout on the forums, but then go to the CMS tab, it will display as If I were still logged in

extreme-gaming
30 Jul 2011, 19:56
Hi, go to http://tinychat.com/avalanch07 and I'll setup a cam so you can check out whats going on with the login on my side using firefox 6 & ie9


------------------------------------

It's been verified on my end (via tinychat) that this is not an issue with any tips that I provided.

Crotan
30 Jul 2011, 20:54
I had to remove the caching of several elements to get mine to work without causing a wonky logout and login for IE, and Firefox, I'll have to do more extensive troubleshooting to see exactly what it was, and will report later after I narrow it down.

extreme-gaming
30 Jul 2011, 20:56
It's pretty interesting that it didn't happen on my end, only on yours.

8thos
30 Jul 2011, 21:46
I've done Step 2 with Cloudflare CDN instead of using supercharged. Supercharged just causes problems.

Do not activate Rocket Load on Cloudflare though.

Step 4 United Forum Sprites actually slowed my site down.

I'll try Step 3 later.

--------------- Added 1312062709 at 1312062709 ---------------

Step 3, you have to create a new domain and cname entry right? That's what page speed and webpagetest.org is telling me. It's telling me to put my whole images folder there.

extreme-gaming
30 Jul 2011, 23:43
Step 3 deals with reducing the total KB of images & what kind of problems did supercharged cause?

eva2000
31 Jul 2011, 09:20
Thought I'd chime in with a note/tip - just be careful when implementing all this solely via .htaccess. If you have VPS or dedicated server you may already have some of the optimisations configured and setup directly via httpd.conf or httpd.conf include files (i.e. in whm/cpanel) which is the more optimal way of implementing these optimisations.

More online tools and tests for you to check your progress posted on my personal blog at http://vbtechsupport.com/388/

HTH

George

Buray Savas ANI
31 Jul 2011, 16:17
Hi, how to use with vbseo?

extreme-gaming
31 Jul 2011, 17:36
I don't have vbseo so I can't inform you much about that.

You will want to use vbseo's friendly url rewriting code in the htaccess instead of the one posted here though. So in your case, copy the contents of the htaccess file into the htaccess that vbseo creates. Remove the following code from it and save. I don't believe vb supercharged plays well with vbseo but I'm not sure.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

8thos
31 Jul 2011, 17:45
How do you prevent static images from using cookies? I keep failing this in webpagetest.org.

Proper cookie usage: 40/100

extreme-gaming
31 Jul 2011, 17:59
I believe for that step domain sharding removes the cookies. I'll have to post back after I look it up a bit more.


YSlow recommends:

To work around this problem, make sure that static components are requested with cookie-free requests by creating a subdomain and hosting them there.

If your domain is www.example.org, you can host your static components on static.example.org. However, if you've already set cookies on the top-level domain example.org as opposed to www.example.org, then all the requests to static.example.org will include those cookies.

In this case, you can buy a whole new domain, host your static components there, and keep this domain cookie-free.

Yahoo! uses yimg.com, YouTube uses ytimg.com, Amazon uses images-amazon.com and so on.
http://developer.yahoo.com/performance/rules.html#cookie_free

8thos
31 Jul 2011, 21:10
I believe for that step domain sharding removes the cookies. I'll have to post back after I look it up a bit more.


YSlow recommends:

To work around this problem, make sure that static components are requested with cookie-free requests by creating a subdomain and hosting them there.

If your domain is www.example.org, you can host your static components on static.example.org. However, if you've already set cookies on the top-level domain example.org as opposed to www.example.org, then all the requests to static.example.org will include those cookies.

In this case, you can buy a whole new domain, host your static components there, and keep this domain cookie-free.

Yahoo! uses yimg.com, YouTube uses ytimg.com, Amazon uses images-amazon.com and so on.
http://developer.yahoo.com/performance/rules.html#cookie_freeWould this work?

Admin CP/Cookies and HTTP Header Options

Path to save cookies / (leave blank)
Cookie Domain (use custom setting) www.the8thlegion.com

Then create CNAME entry A

subdomain: images.the8thlegion.com

Move images folder to images.the8thlegion.com or have the folder redirected to it?

extreme-gaming
31 Jul 2011, 23:13
I believe from what I've been reading is that if your forum is in the root, then it sharding won't work (because the cookies affect any subfolders within, just like a htaccess does to folders if it's set at the root). Cookies will still be delivered. If you make a folder for your forum and move it there to like /forum, then the subdomain sharding would work to prevent cookies.

8thos
01 Aug 2011, 02:18
I believe from what I've been reading is that if your forum is in the root, then it sharding won't work (because the cookies affect any subfolders within, just like a htaccess does to folders if it's set at the root). Cookies will still be delivered. If you make a folder for your forum and move it there to like /forum, then the subdomain sharding would work to prevent cookies.Ooohhhhh.

Crapppp.

That would break a whole lotta links right? Cause my ranking to go down?

Damn.

extreme-gaming
01 Aug 2011, 02:22
It would. You can setup a 301 redirect for google and your visitors though. Within 3-4 month's you should be getting less & less crawl errors/redirects. Personally, I would mass message your members about the change or announce it, then go for it. Or register a new domain.

8thos
01 Aug 2011, 02:31
Damn.

--------------- Added 1312165937 at 1312165937 ---------------

By the way I used that link you posted to optimize images and it made my first byte time faster. Thanks a lot man.

extreme-gaming
01 Aug 2011, 02:34
No problem, it wasn't too hard to follow the way I explained it was it?

EDIT: Seems you could still use a few more optimized images
Optimizing the following images could reduce their size by 35.6KiB (57% reduction).


Damn.

--------------- Added 1312165937 at 1312165937 ---------------

By the way I used that link you posted to optimize images and it made my first byte time faster. Thanks a lot man.

8thos
01 Aug 2011, 04:19
I optimized those images and after uploading them they did not work. They appeared as question marks. The main ones that site was worried about were my menu images. I optimized those. I think I can optimize photopost thumbnails. I had jaxel's media library in the side widget but I need to optimize the thumbnails to be smaller first. I can do that in the settings.

extreme-gaming
01 Aug 2011, 05:10
You must have dome something wrong. Appearing as question marks means it didn't find the image. Aka a 404 error.

Mooff
01 Aug 2011, 10:27
Damn.

--------------- Added 1312165937 at 1312165937 ---------------

By the way I used that link you posted to optimize images and it made my first byte time faster. Thanks a lot man.

What?

Sorry to say that, but how is optimizing images related to first byte time?


Time To First Byte or TTFB is a measurement that is often used as an indication of the responsiveness of a webserver or other network resources.

It is the duration from the virtual user making an HTTP request to the first byte of the page being received by the browser. This time is made up of the socket connection time, the time taken to send the HTTP request and the time to taken to get the first byte of the page.


In rough the time adds up like this:
Sending http-request (timing should be similar to a ping) - your webserver (apache?) connecting to your php-system, your php system then will check whether the site can be served via your php cache or whether it has to compute everything new. For vbulletin: running the forum.php including all those database queries, takeing the output, go through the template - build the html page. And finally it goes to the user. At this point your webserver finally does know what images/html it has to send. Up until this point he does nothing and waits. So optimizing images does not influence the first byte at all. I would go for statistical fluctuation here.


You can speed up that process by using a web accelerator (varnish for example). With this it would go like that: http-request goes in, web accelerator sends cached page back. We would avoid all database queries and php compilation etc.
Since we can't really serve our users some cache data which does not check for their permissions, web accelerators can only used (not 100% true) for guests and crawlers.

But well guests and crawlers make up most of the traffic anyway, so varnish is a huge gain, really huge gain in speed and server load.

(web accelerator setup is pretty advanced and probably can't be explained in a simple how to - you need a tech admin who knows exactly what he is doing)

8thos
01 Aug 2011, 16:27
What?

Sorry to say that, but how is optimizing images related to first byte time?



In rough the time adds up like this:
Sending http-request (timing should be similar to a ping) - your webserver (apache?) connecting to your php-system, your php system then will check whether the site can be served via your php cache or whether it has to compute everything new. For vbulletin: running the forum.php including all those database queries, takeing the output, go through the template - build the html page. And finally it goes to the user. At this point your webserver finally does know what images/html it has to send. Up until this point he does nothing and waits. So optimizing images does not influence the first byte at all. I would go for statistical fluctuation here.


You can speed up that process by using a web accelerator (varnish for example). With this it would go like that: http-request goes in, web accelerator sends cached page back. We would avoid all database queries and php compilation etc.
Since we can't really serve our users some cache data which does not check for their permissions, web accelerators can only used (not 100% true) for guests and crawlers.

But well guests and crawlers make up most of the traffic anyway, so varnish is a huge gain, really huge gain in speed and server load.

(web accelerator setup is pretty advanced and probably can't be explained in a simple how to - you need a tech admin who knows exactly what he is doing)

I installed and ran vboptimize, some parts of vbsupercharged, disabled plugins, optimized some images, got rid of apture, activated cloudflare, used some of their compression settings (except for rocketload and minimize javascript and html because they messed up parts of my site) and even ran united forum sprites and my first byte time remains an F. Forwarding this to my host so they can take a look. Thanks.

extreme-gaming
01 Aug 2011, 18:14
You can always try this plugin as well, to reduce cookies from javascripts, css & images. (just point the resources to a subdomain)

http://wiki.netdna.com/Implementation/vBulletin

http://img.photobucket.com/albums/v48/scylla/pointing-to-subdomain.png

8thos
01 Aug 2011, 19:07
You mean buy vbSEO?


...............................

extreme-gaming
01 Aug 2011, 19:07
No, that plugin is free.

8thos
01 Aug 2011, 19:29
Where is the download for it? I didn't see it on that site. So I can use cloudflare cdn through this plugin?

BTW I found out what was slowing down my first byte time. It was vbenterprise translator. Either it's not configured right or it's just too much for my site. Disabled for now. Pretty dissapointed right now as it costs $200 something. Asked the mod creator if he does refunds just now.

extreme-gaming
01 Aug 2011, 19:34
http://discovertheartist.com/product-cdn.xml

(right click and save) & upload

8thos
01 Aug 2011, 20:29
Thanks! Trying to figure this out now.

--------------- Added 1312232398 at 1312232398 ---------------

This is all I have left to fix for speed.

Combine static CSS and JS files: 0/100
Proper cookie usage: 32/100

That vbseo cdn link should fix the proper cookie usage right?

extreme-gaming
01 Aug 2011, 21:20
it should as long as you point it to either:

A cookieless subdomain
A cookieless domain

You can always get a free hosting account at x10hosting and put your static there & point to it.

steeler7
03 Aug 2011, 17:15
Where is my .htaccess file? I can find the one in my entire website root but under /forum I don't see one. Should I be using the one on my web root or do I have to create an .htaccess file?

extreme-gaming
03 Aug 2011, 20:53
Ok, if you want to use the one in the /public_html you can. Just add everything in the htaccess provided EXCEPT the rewrite rules. (this will provide caching for any directories contained in the /public_html folder)

Now, after that, your going to have to make a htaccess in your forum root if one isn't already there. Add the friendly url rewrites into that one and your good to go.

steeler7
04 Aug 2011, 02:24
Ok, if you want to use the one in the /public_html you can. Just add everything in the htaccess provided EXCEPT the rewrite rules. (this will provide caching for any directories contained in the /public_html folder)

Now, after that, your going to have to make a htaccess in your forum root if one isn't already there. Add the friendly url rewrites into that one and your good to go.

thanks!

I bypassed doing one in my public_html since it didn't sound like it was needed and I just created an htaccess file using code that you provided

extreme-gaming
04 Aug 2011, 19:27
ah ok then.

teach1st
08 Aug 2011, 00:10
The .htaccess bit sped up my forums, but made notifications for PMs unreliable. PMs would show in the inbox and then disappear on reload. 4.1.5pl1

rajubd
08 Aug 2011, 00:49
user keep complaining they unable to find new post so I removed it

extreme-gaming
08 Aug 2011, 04:13
Teach & raj, can you give me some examples?

Also, is this with htaccess alone... with vbsc alone... with htaccess & vb supercharged both used? I need some more details to help you both out.

rajubd
08 Aug 2011, 05:52
I am not using vbseo. problem relate to forum home page only. you can find here user name test pass : 123456 www.mobilephonetalk.com/showthread.php?96732-Hacking-Attempt

teach1st
08 Aug 2011, 10:54
Teach & raj, can you give me some examples?

Also, is this with htaccess alone... with vbsc alone... with htaccess & vbsc both used? I need some more details to help you both out.

I'm not using vb supercharged or any type of SEO that I know of. As far as the delayed PM notifications, I am using Cel Social Groups notifications (http://www.vbulletin.org/forum/misc.php?do=producthelp&pid=cel_sgn_40). Let me know what else you need.

extreme-gaming
08 Aug 2011, 15:39
vbsc = vb supercharged... not vbseo

rajubd
09 Aug 2011, 16:40
I am not using vb supercharge using vb optimize lite

extreme-gaming
10 Aug 2011, 00:39
You're going to have to contact vb optimize then. Thanks.

whitey10tc
17 Aug 2011, 02:21
I've given this a try with the end result of
a constant cycling admin cp <-- cloudflare issue,
Login/logout issues <-- All browsers
Ads and images not appearing <-- All browsers.

Although the site was lightning fast, any suggestion mainly for the login issue and images issue, I've disabled cloudflare and the Admincp is back to normal.

extreme-gaming
17 Aug 2011, 05:01
I would think those issues are related to cloudflare, I set my cloudflare account up via the hostgator wizard and all that I notice is that it saves queries, doesn't serve static from their domains, combine js etc.

whitey10tc
17 Aug 2011, 16:09
I would think those issues are related to cloudflare, I set my cloudflare account up via the hostgator wizard and all that I notice is that it saves queries, doesn't serve static from their domains, combine js etc.The issue with the admin cp I confirmed to be a cloudflare issue, because it stopped after disabling cloudflare but the others continue after modifying the htaccess file.

extreme-gaming
17 Aug 2011, 17:39
and I'm guessing your using vbsc or vb optimize?

whitey10tc
17 Aug 2011, 20:25
and I'm guessing your using vbsc or vb optimize?

Yes VBSC. on 4.1.3 pl3.

extreme-gaming
18 Aug 2011, 00:22
I have a feeling that vbsc might be conflicting with some of your mods, the author hasnt updated it since vb 4.0.3 and has told me that there are no plans to continue updating the mod. It has a known history of conflicting with other mods but for now it's the only plugin that I can find that combines js & css for vb4

whitey10tc
18 Aug 2011, 05:36
I have a feeling that vbsc might be conflicting with some of your mods, the author hasnt updated it since vb 4.0.3 and has told me that there are no plans to continue updating the mod. It has a known history of conflicting with other mods but for now it's the only plugin that I can find that combines js & css for vb4:eek: Maybe I'll mirror the forum to a password protected forum disable all the mods, load the htaccess and start loading the mods one by one and see if I can trouble shoot this. The htaccess file and vbsc alone increased the load times to less than 2 seconds, but had the login troubles and refreshing page issues.

extreme-gaming
18 Aug 2011, 17:07
I'm not sure what's going on but it seems like the same thing with this guy
http://www.vbulletin.org/forum/showpost.php?p=2226959&postcount=18

I had no problems on his site & even showed him, yet on his end, he had problems.

apaydin2148
31 Aug 2011, 16:40
What if I use vbseo? How can I edit htaccess (post3) for vbseo?

extreme-gaming
02 Sep 2011, 02:13
You can use this with vbseo, here's how.

http://www.vbulletin.org/forum/showpost.php?p=2227290&postcount=26

whitey10tc
03 Sep 2011, 17:28
I'm not sure what's going on but it seems like the same thing with this guy
http://www.vbulletin.org/forum/showpost.php?p=2226959&postcount=18

I had no problems on his site & even showed him, yet on his end, he had problems.I haven't yet figured it out, but I am going to be setting up a new forum to complement the current one so I will further some tests on it before I open it to the public.

gec100
07 Sep 2011, 07:47
how could i use this with CMS?

tried to put it in the root rewriting the original httaccess, but got problems with caching similar to tech and raj problems.

thx

extreme-gaming
07 Sep 2011, 21:05
Hi, I don't have access to cms. Can you pm me the default htaccess that comes with the cms package?

gec100
08 Sep 2011, 07:47
there is no default httaccess with cms.

here's the one that my isp put there:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



i have very little knowledge about httaccess file so i do hope i did not post something i should not :p

extreme-gaming
09 Sep 2011, 19:57
No sorry that htaccess that your isp left you won't help me look into the cms problems, thanks anyways.

doctorsexy
13 Sep 2011, 15:05
Im having problems with the htaccess i get a 500 error internal server when i use it ...

extreme-gaming
13 Sep 2011, 20:07
Yeah, your using a CMS as well from what I can see. I don't support the cms, forum only like the title says, sorry. Also gec, I wouldn't be surprised if your issues were cookie related. You might want to check your browser & vbulletin config.

appsfinder
28 Sep 2011, 05:25
hi all i would like this to work for vb3 please can you help what do i need to do for my htccess file?

extreme-gaming
28 Sep 2011, 22:41
You can use this with vb3 by doing the same thing I linked to in an earlier post.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Lazorbeam
03 Nov 2011, 15:59
I used the htaccess file and was having some issues. New posts, articles and whatnot were not showing up on the forums unless the user refreshed the page.

I had to remove gzip and html caching for these pages to show again.

Dirt Bike Addict
03 Nov 2011, 16:09
I used the htaccess file and was having some issues. New posts, articles and whatnot were not showing up on the forums unless the user refreshed the page.

I had to remove gzip and html caching for these pages to show again.
Never cache your HTML.

Gzip shouldn't cause these problems, try enabling it again without caching your HTML.

Lazorbeam
03 Nov 2011, 16:25
Never cache your HTML.

Gzip shouldn't cause these problems, try enabling it again without caching your HTML.

The htaccess files provided in this thread cache html.

I removed only the html caching part, and the problem was solved. Thanks!

Edit:

Remove
AddType text/html .html .htm
ExpiresByType text/html A3600

Right?

Dirt Bike Addict
03 Nov 2011, 16:35
The htaccess files provided in this thread cache html.

I removed only the html caching part, and the problem was solved. Thanks!

Edit:

Remove
AddType text/html .html .htm
ExpiresByType text/html A3600

Right?
Here's what I use, does pretty much the same thing with a lot less lines.

*May not work on all server setups*




Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

TECK
03 Nov 2011, 22:21
http://discovertheartist.com/product-cdn.xml

(right click and save) & upload

That product is not available for download anymore. I contact MaxCDN and they don't have the file. Can you please attach it here? Thanks.

extreme-gaming
04 Nov 2011, 11:58
First you'll have to ask vbseo, since they made the plugin. My bet would be that vbseo contacted discovertheartist.com and asked them to remove the xml from public visitors.

If they wish for it to be public, it is up to them to upload it here, seeing as it isn't my product.

abumohamed
06 Nov 2011, 01:23
great article.
thank you so much

extreme-gaming
22 Dec 2011, 04:59
This now works for the current vbulletins (4.1.5 and up)

Jump to post 1 for the htaccess

thompson
31 Dec 2011, 12:12
will give it a try.

extreme-gaming
09 Jan 2012, 22:19
Updated the first post. Now the htaccess has been revised to work with practically any vbulletin setup with or without vbseo installed.

Hornstar
31 Jan 2012, 08:51
Hey I am on vb 3.8.x with vbseo.

Which set of rules should I add to my htaccess file? The one in the first post? or is the one in the 2nd post better? It just looks strange in the fist post because lots of it says vbulletin 4.

Thanks.

extreme-gaming
02 Feb 2012, 01:01
they are both the same thing. Essentially when using vbseo, the htaccess would look like this.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

weave
14 Feb 2012, 05:43
**Post removed**

w8baby
23 Feb 2012, 15:59
the chatbox seems to stop refreshing/showing content after the .htaccess update from the first post edit

extreme-gaming
23 Feb 2012, 20:15
Which chat box are you using?

w8baby
24 Feb 2012, 11:05
Which chat box are you using?

the most common one
vsa-chatbox +chatbox addon

the chatbox become stuck at updating... without showing any message after .htaccess update

extreme-gaming
06 Apr 2012, 14:02
Message me a link and I'll check it out. Anyways I have provided a fix to the login issue when using these htaccess rules. Changes may not show immediately but they will show they are working after some time. Check the first & 3rd post.

Brandon Sheley
06 Apr 2012, 15:11
Nice article but I wouldn't suggest doing everything you mentioned, in particular adding cloudflare (http://admin-talk.com/threads/6454/)..
Research what works for you and what doesn't, I've seen reports of users not being able to access a site after CF was enabled.

extreme-gaming
06 Apr 2012, 15:29
Give me some posts about CF conflicting with vbulletin. I'd like to look into that.
Nice article but I wouldn't suggest doing everything you mentioned, in particular adding cloudflare (http://admin-talk.com/threads/6454/)..
Research what works for you and what doesn't, I've seen reports of users not being able to access a site after CF was enabled.

Brandon Sheley
08 Apr 2012, 13:42
Give me some posts about CF conflicting with vbulletin. I'd like to look into that.

I (and you) linked directly to my source in the reply already ;) :up:

doileloi
24 May 2012, 03:11
I use 4.1.5 did what you told on page but right now all my forum log in problem /

here my code in



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Please help me on this thank you

extreme-gaming
24 May 2012, 14:21
Hi, since you are using vbseo, you should make the following changes to your htaccess file.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



After that, you should also do the tip provided in post 3 here.

Fixing login issues with vbulletin 4.



Disable vbulletin content caching (since apache is handling that now)

AdminCP > Options > Server Settings and Optimization Options > Disable Content Caching: Set to yes

*Note these changes did not show immediately for me but they did show that they were working for me after roughly 15 minutes.