FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Duplicate content and home page

 


SoftStag
Hi

I have noticed that Google has indexed both http://www.technical-assistance.co.uk/ and http://www.technical-assistance.co.uk/index.php and lists them separately. I take it from this that Google sees these as 2 spearate URLs, even though they are the same page. My concern is that as they are the same page and listed separately, will the be penalised for being duplicate content?

I have though about putting http://www.technical-assistance.co.uk/index.php in the robots.txt file to disallow it being crawlled; but I am concerned that this will also disallow http://www.technical-assistance.co.uk/

Can anyone shed any light on this?
Bondings
Maybe place something like this in a file called .htaccess in that directory. (if it doesn't exist, create it)

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.technical-assistance\.co\.uk/index.php$ [NC]
RewriteRule ^(.*)$ http://www.technical-assistance.co.uk/$1 [R=301,L]
SoftStag
Bondings wrote:
Maybe place something like this in a file called .htaccess in that directory. (if it doesn't exist, create it)

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.technical-assistance\.co\.uk/index.php$ [NC]
RewriteRule ^(.*)$ http://www.technical-assistance.co.uk/$1 [R=301,L]

Thanks Bondings, I have tried this, and it doesn't seem to work. My .htaccess file now looks like this:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^technical-assistance\.co\.uk$ [NC]
RewriteRule ^(.*)$ http://www.technical-assistance.co.uk/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.technical-assistance\.co\.uk/index\.php$ [NC]
RewriteRule ^(.*)$ http://www.technical-assistance.co.uk/$1 [R=301,L]

Any suggestions?
Bondings
If it doesn't work, then I don't know what to do. I'm not a mod_rewrite expert. Maybe just comment out the last 2 lines for the moment. (put a # before them)
SoftStag
Thanks Bondings. This mod_rewrite stuff is quite complicated and not easy to understand.

Can anyone else help?
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> SEO and Search Engines

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.