According to http://www.virante.com/seo-tools/duplicate-content.php I need to fix something in Drupal settings for karnataka.com

Default Page Check: FAILED
You have not standardized your default pages meaning the following versions of your url return a 200/OK Header, which may cause duplicate content issues. The following extensions work:
http://www.karnataka.com/index.php
http://www.karnataka.com/

How do I fix this?

regards,

Mahesh

Comments

cog.rusty’s picture

There are some comments in Drupal's .htaccess file explaining how you can make a site always use "www." or never use it, so I guess you can fix the alleged "duplicate content problem" there.

However I am pretty sure that that "duplicate content test" is 100% BS. Some people just have too much time on their hands.

k74’s picture

but this is only for www or without www, but the error index.php duplicate?

Default Page Check: FAILED
You have not standardized your default pages meaning the following versions of your url return a 200/OK Header, which may cause duplicate content issues. The following extensions work:
http://www.example.com/index.php
http://www.example.com/

thanks

cog.rusty’s picture

If you google for apache "hide index.php" you will find in the first page of results many suggestions for how to never show "index.php".

But consider that you may be underestimating Google and giving too much credit to the "SEOlogists" if you believe that Google penalizes completely natural practices.

k74’s picture

thanks, I've found a way to redirect 301 the index.php to / with RewriteRule

mtndan’s picture

Would you mind sharing your solution?

k74’s picture

yes, in htaccess:

# REDIRECT /folder/index.php to /folder/
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://www.fullcustom.es/$1 [R=301,L]

Replace "www.fullcustom.es" with your domain

uniyolu.com’s picture

This is not working.

Kliwo’s picture

Please try to implement the following changes:

# REDIRECT /folder/index.php to /folder/
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://www.Tempux.com/$1 [R=301,L]

also to to sort out the duplicate www issue use the following:
With or Without WWWs use the follow:

# To redirect all users to access the site WITH the 'www.' prefix,
# (http://Tempux.com/... will be redirected to http://www.Tempux.com/...)
# adapt and uncomment the following:
RewriteCond %{HTTP_HOST} ^Tempux\.com$ [NC]
RewriteRule ^(.*)$ http://www.Tempux.com/$1 [L,R=301]

Test to change Tempux with your homepage name and see if it is now working for you.

Enjoy and have fun with Drupal
Dani