The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mod Rewrite - adding the www
I'm just wondering what to put in the .htaccess in order for me to rewrite URLs to include the www.
For example, I want to change about example.com to www.example.com, how would I go about doing that? |
#2
|
||||
|
||||
Add this to your .htaccess file:
Code:
RewriteEngine On RewriteCond %{HTTP_HOST} ^YOURDOMAIN.COM$ [NC] RewriteRule ^(.*)$ http://www.YOURDOMAIN.COM/$1 [R=301,L] |
#3
|
|||
|
|||
That worked. Thanks. Now, I noticed it only rewrites the initial URL, is there a way for it to add it to each subsequent URL?
For example, change example.com/forums to www.example.com/forums or example.com/12324 to www.example.com/12324. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|