I have two scripts:
- xmlsitemap.php (Google XML sitemap)
- sitemap.php (GUI user friendly sitemap)
I want to achieve this with rewrite rules:
Rewrite to site.com/sitemap.php
site.com/sitemap
site.com/sitemap/
Rewrite to site.com/xmlsitemap.php
site.com/sitemap.xml
Here is what I have tried. The problem is it's rewriting sitemap.xml to sitemap.php (GUI).
Options +FollowSymlinks
RewriteEngine On
RewriteRule sitemap.xml xmlsitemap.php
RewriteRule sitemap sitemap.php
# also tried using [L] option on both