Forum Moderators: phranque
I've noted that most other sites automatically do this, however mine does not (but the site loads from both). I contacted the folks who host the site and they suggested using a redirect. After that failed they suggested using a mod_rewrite, but I'm not sure what that is.
As I say, I'm not sure if this'll explain my google problem but I'd like my site to be set up like the majority of other sites out there. Any advice will be much appreciated.
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule ^(.*)$ [example.com...] [R=301,L]
Note that if you already have an .htaccess file, you should add the following rather than overwriting it.