I want to redirect http://example.com/example.com/index.htm to http://example.com/index.htm
I use htaccess to host multiple parked domains on one account...
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$ [NC]
RewriteRule !^/*example\.com/ example.com%{REQUEST_URI} [L]
I place all the domain files in the directory "example.com" but I screwed up somehow and now Google sometimes points to the directory "example.com"
I tried the following...
RewriteCond %{THE_REQUEST} ^example\.com/(.*)\ HTTP/
RewriteRule ^example\.com/(.*)$ http://www.example.com/$1 [R=301,L]
But it does not work... I really have no idea what I am doing, so help would be appreciated.
[edited by: phranque at 6:04 am (utc) on Sep 25, 2012]
[edit reason] use example.com please [/edit]