I need help creating an htaccess redirect from http://www.example.com/http://www.example.com/sitemap.xml
to http://www.example.com/sitemap.xml
Yes, the duplicate domain name is intentional. An incorrect file name was entered for Google analytics sitemap and the beast keeps searching for this file even though the file name was corrected long ago.
Tried the following but can't get it to work:
RewriteRule /http://www.example.com/sitemap.xml http://www.example.com/sitemap.xml [R=301,L]
Apache seems to strip the duplicate domain name from the redirect and then throws a loop error. Any ideas how it can be forced to view the duplicate domain name as part of the path?
Thanks