If I dont add the www......

tommyownz

Regular Member
Joined
Jan 5, 2009
Messages
233
Reaction score
15
If I dont add the www. to my URL it doesn't go to my website it goes to an error page.
Does anyone know how to fix this?
Thanks
 
Happened to me as well for a bit. I did a redirect like this -

domain.com -> http://domain.com/index.php - redirect with or without the www

That was whether or not they enter the www they get redirected to your index without the www in the address bar.

Jared
 
Sadly that didnt work for me, I have a blog so I dont have an index page. :(
Thanks anyway
 
Just have it redirect to the home page then without putting in the /index.php. By the way, if you have a wordpress blog, your /index.php redirects to the home page so you do have it, you just didn't realize it.
 
I've got a blogger blog. :) When you say like have it redirect, do i have to mess with the DNS settings?
Thanks
 
upload to your site .htaccess file with this:

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite.com
RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]
 
All of those suggestions are correct, but to fix the actual issue, you should set up www in your DNS entry. You would need to set it as a Cname for the www. to work. This should be set at your registrar if they are hosting your DNS otherwise your host would be in control of your DNS if the nameservers have already been pointed. But judging by the fact it's a blogger blog, it's likely to be changed at the registrar level.
 
Login to your control panel and edit DNS for that domain. Add a CNAME to www and point it to your domain.

You need to set it like this in your DNS:

www - 14400 - CNAME - domainname.com.
 
Instead of setting a CNAME it is preferable to set a permanent redirect in your DNS settings
 
Back
Top