Domain with www and without www pointing to same address
Im creating this new section "Help" where in i will try to solve your difficulties you have entered in the comments and also difficulties i have faced. So feel free to drop a comment. Lets start my own barrier that i faced while bringing up this site.
I had registerd a domain name (www.cool-blogger.com) with godaddy.com . After all settings i found that when i typed www.cool-blogger.com i reached my home page but when i did not use www (just cool-blogger.com) i found myself reaching the default page of godaddy.com. After thorough search i found a trick to tackle this problem. It was using domain forwarding . It was just like using url redirectors, which was absurd. After a deep search in google a finally got a solution. Im not sure how and what are the settings with other domain name providers but here i will demonstrate the settings for godaddy and a blogger blog :
After you have logged in your account and selected the neccessary domain name to edit its settings, you will come accross a window like one below.
Go to "Total dns and mx records".
If its you first time you will need to create a new cname record by clicking on "Add a new cname record" or edit the record if record with host www is already present there by clicking the pencil logo on extreme right. A new dialogue box will open where you need to enter "www" in "Enter an alias name" and "ghs.google.com" in "Points to host name" (incase of blogger) . Say ok and save the settings.
Now create a new cname record using same step as above and enter your domain name (eg.cool-blogger.com , the one you want to use without www) in "Enter an alias name" and "ghs.google.com" in "Points to domain name". Say ok and save your record. This is it and you are done!.
Note : It may take upto 24 hrs for these changes to take place so be patient.
Still if this does not help you may use domain forwarding. Click on the link under "Forwarding" on main page.
You will reach a new page where in you need to enter the url where it should redirect. Enter the desired url(eg.m0neytech.blogspot.com) in "Forward to" block and select "301 moved permanently" option. Again this may take upto 24 hrs.
I am currently using a blogger blog so i could point my domain directly by adding a CNAME record. But i think if you are hosting on some other server you will need to add their nameservers to your domain settings. Then using a addon domain option on your hosting server you can point it to whatever directory you want.
htaccess is the main file that needs to be edited inorder to resolve www and non-www issue.
8 Responses to Domain with www and without www pointing to same address
I have a similar problem. I have the domain name http://www.slam-man.com. I host with a different company from the registrar. When I installed wordpress the domain would always come up as http://slam-man.com without the www. I tried changing the URL options in wordpress but now I just get a "301 moved permanently" error. the strange thing is, the address the error message points to is exactly the same as http://slam-man.com. The problem persists after uninstalling wordpress.
BTW, you didn't mention whether you host on godaddy as well or a different host.
ok but rite now im not facing such problem.. lol that post was about how i solved that problem.. i think you have activated your domain forwarding in your domain settings, and you have forwarded slam-man.com to slam-man.com itself, try forwarding it to www.slam-man.com , Also you can try disabling domain forwarding and directly configure your cname and A records. Im using blog of blogger.
Hey,
I sorted it out by changing some errors in the htaccess file. Funny thing is that I didn't touch it at all before so Wordpress might have done something.
I didn't know blogger let you use your own domain name. Maybe I should do that lol instead of paying for a host!
I tried opening your site, it opened when i used www.slam-man.com but it didnt work when i tried slam-man.com, it redirected me to www.slam-man (without a .com at the end) , try fixing it. yes you can try using blogger itself but you wont get the flexibilities.
Hmmm. Thats strange. It works with and without www in firefox but in iexplorer only http://www.slam-man.com works. http://slam-man.com brings up nothing.
I'm thinking iexplorer may not be able to interpret the code in the htaccess file. Although, I didnt actually write the code, I just copied it from a site.
What browser are you using?
I use ie,firefox,opera and for me even opera gave this problem. Have you used domain forwarding with your domain? Or may be c if yu can sort out what is the problem with your htaccess.
Hey mate,
I noticed the error you were getting with www.slam-man (without .com) when I clicked on the google link. Is taht what you did or did you type the URL into the address bar?
Anyway, I've now changed the htaccess file (again) so it works on my end.
I had typed slam-man in the addrs bar, Yup its working now!
Something to say?