...

View Full Version : google indexing non www.



semiSkim
11-17-2010, 04:36 PM
I have just created the website www.jamesdobb.co.uk (http://www.jamesdobb.co.uk) and any non www. links are redirected along with any index.htm files. However google has just crawled the site and index the non www. version of it! I have shown the .htaccess file below, please help! Thanks!


RewriteEngine on
RewriteBase /

### re-direct any non-www. links / ###
RewriteCond %{HTTP_HOST} ^jamesdobb.co.uk [NC]
RewriteRule ^(.*)$ http://www.jamesdobb.co.uk/$1 [L,R=301]

### re-direct index.htm to root / ###
RewriteCond %{THE_REQUEST} ^.*\/index\.htm\ HTTP/
RewriteRule ^(.*)index\.htm$ /$1 [L,R=301]

### Allow .htm files to parse php ###
AddHandler cgi-script .htm
SetEnv PHP_EXTENSION .htm
### AddType application/x-httpd-php .php .htm .html ###

## redirect and pages that can't be found ##
ErrorDocument 404 /404-page-not-found.htm

Tony M
11-18-2010, 01:31 AM
OK, If You search You find that only the main page of Your site is indexed without www , and I tested Your site and it is ok and re-directing Me to the www version.... so I think You might have to wait so that Your website be re-indexed :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum