These are examples of adding redirects to your Nginx virtual host configuration file or .htaccess file.

 

location = /sitemap/sitemap.xml {
alias /sitemap.xml;
}

 

location = /sitemap/sitemap.xml {
rewrite ^/sitemap/sitemap.xml$ /sitemap.xml;
}

 

location ~ ^/(sitemap.xml) {
root /var/www/html/wesbite/sitemap/;
}

Leave a Reply

Your email address will not be published. Required fields are marked *