MyBB Community Forums

Full Version: 2 sites 1 domain [solved]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have just switched host and now i have 2 websites one with and one without "www." i dont know what to do, Please help.

Edit: The problem resolved its self.
But thank you for the help cAwesome
Make sure your Apache vhost file looks like this:


ServerName example.org
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.org$ [NC]
RewriteRule ^(.*)$ http://example.org$1 [R=301,L]

This will redirect www.example.org to example.org (or www.example.org/lol/dongs to example.org/lol/dongs)
(2010-02-17, 12:49 AM)CAwesome Wrote: [ -> ]Make sure your Apache vhost file looks like this:


ServerName example.org
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.org$ [NC]
RewriteRule ^(.*)$ http://example.org$1 [R=301,L]

This will redirect www.example.org to example.org (or www.example.org/lol/dongs to example.org/lol/dongs)

What i need is for the one with www. to be without it and the one without it gone.