I have two scenarios:
- xmlsitemap.php (Google XML sitemap)
- sitemap.php (user friendly site map)
I want to achieve this using rewrite rules:
Rewrite to site.com/sitemap.php
site.com/sitemap
site.com/sitemap/
Rewrite site.com/xmlsitemap.php
site.com/sitemap.xml
Here is what I have tried. The problem is that it rewrites sitemap.xml in sitemap.php (GUI).
Options +FollowSymlinks
RewriteEngine On
RewriteRule sitemap.xml xmlsitemap.php
RewriteRule sitemap sitemap.php
source
share