Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2010
    Posts
    104
    Thanks
    5
    Thanked 3 Times in 3 Posts

    google indexing non www.

    I have just created the website 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!

    Code:
    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

  • #2
    Regular Coder
    Join Date
    Jun 2010
    Posts
    132
    Thanks
    8
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •