Hi,
I want that a url http://domain.com/sitemap.xml internally points to a file sitemap_book.xml in htdocs without any 301/302 redirects.
Please suggest a Rewrite Rule for the same.
I came up with
RewriteCond %{REQUEST_FILENAME} "sitemap.xml"
RewriteRule ^(.*)$ sitemap_book.xml [R]
but it doesn't work without [R]. Gives 400 bad request
When I use [P], I get 502 Proxy Error. I tried setting up mod_proxy with following code
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Proxy>
</IfModule>
That gives 403 Forbidden.