The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
always "www" at the starting of the address
Hi,
i can visit my forum with and without adding WWW. i mean http://piratesboard.com & http://www.piratesboard.com but i want only : http://www.piratesboard.com (with WWW, always) i want, when someone go to address http://piratesboard.com it will autometically turn into http://www.piratesboard.com how can i do it. im using linux shared server with cPanel domain registered from yahoo |
#2
|
||||
|
||||
Add this to your .htaccess file:
Code:
RewriteEngine On RewriteCond %{HTTP_HOST} !^www.example.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] |
#3
|
|||
|
|||
thank you very much
it is working fine |
#4
|
|||
|
|||
Hello,
If you have access to your httpd.conf you can also do this in your apache config file: Quote:
-Raymond |
#5
|
|||
|
|||
Actually, http://no-www.org/index.php
|
#6
|
||||
|
||||
That's "no-www". The OP wants the "www". There used to be a site called "yes-www", but has since disappeared off the face of the planet.
|
#7
|
|||
|
|||
lol Dismounted. ya there should be a yes-www
& tnx to all |
#8
|
|||
|
|||
I don't have the .htacess file :S
|
#9
|
|||
|
|||
The .htaccess file is a file which you need to make and upload to your servers root directory
Creating A .htaccess File Creating a .htaccess file may cause you a few problems. Writing the file is easy, you just need enter the appropriate code into a text editor (like notepad). You may run into problems with saving the file. Because .htaccess is a strange file name (the file actually has no name but a 8 letter file extension) it may not be accepted on certain systems (e.g. Windows 3.1). With most operating systems, though, all you need to do is to save the file by entering the name as: Code:
".htaccess" |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|