DougF Posted January 24, 2010 Report Share Posted January 24, 2010 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 Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.