MyBB Community Forums

Full Version: Have www. Before Your Domain?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I was just wondering how people make it so there's always http://www. before their website.

Examples:
supportforums.net


Anyone know how to do this?
I always write http://www. before mebes.net
(2012-03-24, 07:57 PM)Mebes Net Wrote: [ -> ]I always write http://www. before mebes.net

That's not helpful. I asked how.
The second link for "force www in url" worked, not the one you gave me. But thanks for helping me with finding the correct search term to use.
what? I am very confused. You get www.NAME.com or what ever? It comes with the Domain.
.htaccess Wrote:RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Honestly there is no point in forcing or changing tbh. As long as you redirect one to the other, it's the exact same thing. A lot of people prefer adding the www.
(2012-03-25, 05:09 AM)Nathan Malcolm Wrote: [ -> ]
.htaccess Wrote:RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

ok if i need to redirect WWW.DOMAIN.COM to DOMAIN.COM, what code i need to add in htaccess??
.htaccess Wrote:RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]
Pages: 1 2