![]() |
Automatically adding the www in the URL?
Hi,
I've searched a bit, but due to the search terms being completely generic, couldn't find anything worthy. I'm looking for a way to add the www. in my forum's URLs when it's not in (eg. when people type http://mysite.com/forum, it'd redirect them to http://www.mysite.com/forum), for the simple reason that not having it in completely screws up a few hacks I use. Anyone has a functional way to easily do this? Thanks in advance! |
htaccess
add # force www in url RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] # END force www in url |
Quote:
Works, thank you very much :) |
Very Welcome
|
All times are GMT. The time now is 03:31 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:
|