This works perfectly, thank you. Out of curiosity, does the PHP redirection result in a 301 or a 302? Would this impact SEO in any way compared to using nginx instead?
Hi All,
Through Plesk, I am trying to modify my nginx additional directives so that "/sitemap.php" redirects to "/sitemap.xml". When going to "/sitemap.xml" it should serve the page with "/sitemap.php". I have written the location blocks below:
location ~ ^/sitemap.xml {
try_files $uri...
Hi All,
I have been making some additions to my nginx config file in order to redirect users from domain.com/pages/example.php to domain.com/example. I was stuck on it for a while, with the location block not seeming to be matched unless I used an equal sign for exact matching. After commenting...