Webinoly is just the perfect tool for NGINX experts. Give it a try!
+1 vote
189 views
by Rookie
closed by

Currently in 2023 when I am installing a new webinoly server my sitemap is 404 here is the screenshot. Please tell the solution.

I have tried same in Digital ocean, vultr and upcloud. Same is problem is everywhere.

by Rookie
nginx setting missed,  it can load a custom conf file, build a conf file in the /var/www/yourdomain/sitemap-nginx.conf
add the content below
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;

then install the plugin Google XML Sitemaps
nginx -t
systemctl reload nginx

then it would work
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...