Whats the Difference between the urls with or without www (like: http://www.idealsofts.com and http://idealsofts.com)
bcz google treated the same website as two different websites.
is there any solution to make both as one url ?
“www” has no special status – like any other subdomain (taimurkazmi.yourdomain.com), it can be a completely independent website than the domain alone.
You should redirect all requests to the non-preferred domain to the preferred domain. You’ll find examples of how to do this in the Apache Configuration subforum here.
As just stated above, www is in fact a subdomain and may have a different content. The same may apply to “www1”, “www2”,…
However, in most cases, such a subdomain (-www.yourdomain.com) has the same content as the main domain (yourdomain.com). Then, the webmaster should choose one of both URLs (let’s say -ww.yourdomain.com) and redirect permanently (with 301 redirection)the other one. This prevents search engines from finding duplicate content. This makes also the backlinks to the one domain redirected to the other one (SEO benefits).
Furthermore, the webmaster may choose the form (with or without “www.”) which shall be displayed in SERPs. See settings in the google webmaster account.
thank you for this nice explanation jasmina.
If your site have both type of url, your back links are splitted into two groups which is not fair. so you need to redirect non www URL to www URL which is know as canonical optimization.
RewriteEngine On
# 301 REDIRECT 'WWW' TO ROOT DOMAIN NAME
RewriteCond %{HTTP_HOST} ^www
RewriteRule .* http://mysite.com [R=301,L]
Put in .htaccess file in root directory.
Bompa