I'm having issues with duplicate content on the home page because it seems that index.php is being treated as a different page than www.sample.com/index.html.
I have user friendly URL's turned on. Now, when I go to www.sample.com/index.html, it canonically goes to www.sample.com. That's good.
However, I would like to have the "index.php" home page go to www.sample.com after I type: www.sample.com/index.php.
Right now, when I type www.sample.com/index.php, it remains at that address. Is there a way to make it go to www.sample.com?
MODx doesn't seem to like 301 redirects by way of an .htaccess file. I also tried to redirect index.php to www.sample.com by way of the Redirector component. Didn't work.
My .htaccess file contains this:
# Friendly URLs Part
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
# Force all pages to go to www.sample.com for SEO
RewriteCond %{HTTP_HOST} !^www\.sample\.com [NC]
RewriteRule (.*) http://www.sample.com/$1 [R=301,L]
# Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Additional Settings Follow
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
BrowserMatch "Opera" !brokenvary
SetEnvIf brokenvary 1 force-no-vary
Any ideas? Thanks in advance.
Running MODx Revo 2.2.6-pl
Redirector 1.0.3