How to set www.example.com to example.com

recently i redirect my blog to [noparse]www.onlinehindi.in[/noparse] it ok with it but when i am trying to open with onlinehindi.in it is showing problem

See http://datakoncepts.com/seo, section “Eliminate www for a Domain”

I have seen websites that do not work without a “www” because there was no DNS entry for just the domain.

http://www.zoneedit.com/lookup.html

The A Record DNS entry for onlinehindi.in without a www shows:

DNS Lookup Results For:

onlinehindi.in
onlinehindi.in. 538 IN A 184.168.221.54

The DNS entry for the www version of onlinehindi.in shows this for an A Record:

DNS Lookup Results For:

www.onlinehindi.in
ghs.l.google.com. 300 IN A 74.125.28.121

It looks like you may have an issue there.

Also, there is a CNAME for www.onlinehindi.in

DNS Lookup Results For:
www.onlinehindi.in
www.onlinehindi.in. 3600 IN CNAME ghs.google.com.

If the original poster is trying to redirect www to no-www, this htaccess code will work after the DNS records are straightened out:

# Rewrite requests to www to non-www.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\\.example\\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]

All requests to http://www.example.com will be 301 redirected to http://example.com

Hi cheesedude Sounds like you understand all this DNS stuff much better than I do :blush: Hopefully you can answer a quick question for me…

My site always uses the www version. The htaccess converts all non-www requests. The domain registration is separate from the webhosting and we use A Records to make the transfer.

It all works well except some site monitoring programs that we want to use freak out when we enter our www version (they work for our non-www version AND they work for other www sites)

Using the zoneedit tool you mentioned we get these results…

DNS Lookup Results For:
easydigging.com
easydigging.com. 600 IN A 173.236.29.66

…and…

DNS Lookup Results For:
www.easydigging.com
www.easydigging.com. 600 IN A 173.236.29.66

…which are identical. Any other clues of what our problem might be?

Thanks!