Home>

The site map of the website is created with php (sitemap.php).
It is displayed even if it is accessed by sitemap.xml with .htaccess.

↓↓↓

RewriteRule ^ sitemap \ .php $sitemap.xml [R = 301, L]

Because the same content is displayed even if it is accessed with sitemap.php in the above,
Is there a way to rewrite sitemap.php access without redirecting to sitemap.xml?

I asked a question to study.