Hi, is it some problem for site that doesn't have Google cach for http://www.url.com but has for http://url.com or contrariwise has Google cach for http://www.url.com but doesn't have for http://url.com ? Thanks in advance
url without www is better than with one. when you exchange link with other website. it's also better without www good luck!
thanks for your oppinion I thought that good webmasters have to care that http://www and http:// are promoting in the same way
There is absolutely no practical difference between using the www. prefix and not using it. The choice is yours. The key is to pick one version and stick to it. Google can be slow to merge the two versions of these URLs in their index, which is why it is universally recommended that you install a server code 301 redirect for all requests for the "bad" version to the "good" version once you have selected one for your site. And you should also select a Preferred version in the Webmaster Tools console. Doing so prevents problems with duplicate content issues. But even without the redirect in place and no preference set in the Webmaster Tools, Google would eventually work out a single version on its own - as do all of the other search engines. Then what version other sites use in their links to your site won't matter at all.
First, it doesn't matter which version you use; neither has more value than the other. What can happen is you can get duplicate content issues and improper Pagerank\SEO weight. What happens is search engines consider domain.com and www.domain.com to be two different web pages. So if some of your backlinks point to one and some to the other your effectively not getting all your link juice to one specific location. You should 301 redirect the non-www to the www URL. Below is the code to do this via your .htaccess file, make sure to change yourdomain.com to your actual domain name. RewriteEngine on RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L] Code (markup):
I take it one step beyond to avoid duplicate content & redirect the index pages of all the directories, and subdirectories to the root of each's directory. So that http://www.republican.inet-publishing.com/texas/index.php is redirected to http://www.republican.inet-publishing.com/texas/ (hint, I am also doing it with any index.html also in this example, I have both in some sites), otherwise G could end up indexing both http://www.democrat.inet-publishing.com/index.php and http://www.democrat.inet-publishing.com/ as seperate, but identical pages, and people linking to both will split the PR, also a loss. Do not leave to chance how search engines spider your site, force them to see it correctly. RewriteEngine on RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html|php)\ HTTP/ RewriteRule ^(([^/]+/)*)index\.(html|php)$ http://www.sample.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^sample\.com RewriteRule (.*) http://www.sample.com/$1 [R=301,L] Code (markup):
You do realize the code you just provided will not work with php variable urls attached to the index.php file; I think you need to practice your mod-rewrite skills. RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://www.example.com/ [R=301,L] Code (markup):
I do agree with this point of view. While some domains sounds great without www's, some others look more professional with them.