![]() |
How can I prevent the WWW version of my website from being displayed?
Thanks for reading!
I'd simply like to prevent the www version of my vbulletin install from being accessible. e.g. when a person goes to the www version of my forum URL, i'd like to have the www disappear and go to the non www version. I guess I'd use the htaccess file??? Or do i use canonical tags? Please help :confused: Thanks |
Add this to your .htaccess in your sites root directory. If you don't have one there, create one and add this to it:
Code:
RewriteEngine On |
Also, be sure to update the URL in your admincp before making the change, or you may not be able to login (depending on cookie settings)
|
Quote:
|
Thanks guys
can you be more specific about: "be sure to update the URL in your admincp" what does this mean? |
Quote:
Code:
AdminCP => Settings => Options => Site Name / URL / Contact Details => Forum URL For example, if you currently have http://www.yoursite.com, you need to change that to http://yoursite.com :) |
|
No problem :)
|
Just curious, but how is this different from the following?
Code:
RewriteCond %{THE_REQUEST} ^.*/index.php |
All times are GMT. The time now is 05:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|