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


jdMorgan - 5:17 pm on Aug 8, 2007 (gmt 0)



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} ^//+(.*)$ [b][OR]
RewriteCond %{REQUEST_URI} ^(.*/)/+$[/b]
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]

Please take care to avoid double-posting your replies. I've had to remove one triple-post and two double-posts so far.

Thanks,
Jim


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