10-31-2011, 09:18 PM
|
PM User |
#1
|
|
New to the CF scene
Join Date: Oct 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
.htaccess errors causing duplicate content at multiple URLs
Hey everyone,
It appears that my .htaccess has errors which have led to a multiple content penalty. Can anyone please suggest how best to rewrite the following:
Quote:
Options +FollowSymLinks
RewriteEngine On
# HTTP/1.1 301 Moved Permanently
RewriteRule ^blonde.html|blonde-escorts|blonde-escort-london|london-escorts/blonde\.html? http://www.example.com/blonde-london-escorts.html [R=301,L]
RewriteRule ^brunette.html|brunette-escort-london|london-escorts/brunette\.html? http://www.example.com/brunette-london-escorts.html [R=301,L]
RewriteRule ^busty.html|busty-escorts|busty-escort-london|london-escorts/busty\.html? http://www.example.com/busty-london-escorts.html [R=301,L]
RewriteRule ^latina.html|latin-escort-london|brazilian-escort-london|london-escorts/latina\.html? http://www.example.com/latina-london-escorts.html [R=301,L]
RewriteRule ^reviews\.html? http://www.example.com/feedback.html [R=301,L]
# HTTP/1.1 410 Gone
RewriteRule ^Description|TITLE|London-Escorts-Portfolio|London_escorts_portfolio|london-escort-in-chelsea-milla|london-escort-in-paddintgon-angelina|london-escorts/aged-18-21|london-escorts/aged-22-plus|london-escorts/escorts-az\.html - [G]
RewriteRule ^links/independent-escorts-in-london|links/escort-agencies-in-london|links/linking|links/fetish|links/index|links/escort-web-site-design|links/escort-agencies-in-the-usa|links/erotic-stories\.html - [G]
RewriteRule ^banners/ - [G]
# Redirect index.htm/.html to '/'
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.html?(\?[^\ ]+)?\ HTTP/ [NC]
RewriteRule ^(([^/]+/)*)index\.html?$ http://www.example.com/$1? [R=301,L]
# If not already redirected above, redirect non-canonical domain requests to the canonical domain
RewriteCond %{HTTP_HOST} !^www\.example\.com$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
# Redirect to remove multiple slashes within URL-path
RewriteRule ^(([^/]+/)*)/+(.*)$ http://www.example.com/$1$3 [R=301,L]
# Redirect to remove multiple slashes before URL-path
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ //+([^\ ]*)
RewriteRule .* http://www.example.com/%1 [R=301,L]
|
Thank you.
|
|
|
|