Quantcast
Channel: Block access to sitemap.php but allow sitemap.xml - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Madan Sapkota for Block access to sitemap.php but allow sitemap.xml

$
0
0

When the request is sent to a sitemap PHP file, redirect to the XML file.

RedirectMatch 301 ^sitemap.php$ sitemap.xml

Viewing all articles
Browse latest Browse all 3

Trending Articles