我有两个脚本:
site.com/sitemap
site.com/sitemap/ 重写到site.com/xmlsitemap.php
site.com/sitemap.xml
这是我尝试过的。问题在于它将sitemap.xml重写为sitemap.php(GUI)。
- xmlsitemap.php(Google XML网站地图)
- sitemap.php(GUI用户友好的网站地图)
site.com/sitemap
site.com/sitemap/ 重写到site.com/xmlsitemap.php
site.com/sitemap.xml
这是我尝试过的。问题在于它将sitemap.xml重写为sitemap.php(GUI)。
Options +FollowSymlinks
RewriteEngine On
RewriteRule sitemap.xml xmlsitemap.php
RewriteRule sitemap sitemap.php
# also tried using [L] option on both