Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Page Indexed with double //


jdMorgan - 1:31 pm on Aug 7, 2007 (gmt 0)


Well try this. It's a bit of a hack, but it might work better... Also, your rules should be in order, from most-specific to least-specific:

Options +FollowSymLinks
RewriteEngine on
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.htm\ HTTP/
RewriteRule ^(([^/]+/)*)index\.htm$ http://www.example.com/$1 [R=301,L]
#
RewriteCond %{REQUEST_URI} ^//+(.*)$
RewriteRule ^/ http://www.example.com/%1 [R=301,L]
#
RewriteCond %{REQUEST_URI} ^/([^/]+)//+(.*)$
RewriteRule // http://www.example.com/%1/%2 [R=301,L]
#
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

Jim


Thread source:: http://www.webmasterworld.com/apache/3412891.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com