0 votes

Hi,im using webinoly for one domain,but when i install google xml sitemap,it ask me to add these code to nginx conf

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;

but i dont see any domain.conf to add or i dont know where to ask.

Pls help me,thank you :)


Update : 

When i goto /etc/nginx/sites-available, i see domain.com file,and i open this file and see content here

server {

listen 80;

listen [::]:80;

server_name miojav.com www.miojav.com;

access_log /var/log/nginx/miojav.com.access.log we_log; 

error_log /var/log/nginx/miojav.com.error.log;

root /var/www/miojav.com/htdocs;

index  index.php index.html index.htm;

include common/php.conf;

include common/wpcommon.conf;

include common/locations.conf;

include common/headers-http.conf;

include common/headers-html.conf;

#include /var/www/miojav.com/conf/nginx/*.conf;


And i pasted these rewrite code to this file,now i can open sitemap but i show blank page

anyone help me ? tks :D 

1 Answer

0 votes
by Expert

Hi Pham,

This is a known issue, Webinoly comes with Yoast Sitemap pre-configured and this is causing conflicts and issues with other sitemap plugins. It will be fixed in the next major update!

As a temporal fix I suggest you delete the Yoast code:

  1. Go to: sudo nano /etc/nginx/common/wpcommon.conf
  2. At the end of the file you will find the Yoast Sitemap code, remove it!
  3. Restart NGINX: sudo nginx -t && sudo service nginx reload

Now, you can add your sitemap code in your site conf or replacing the Yoast code. Don't forget to restart nginx each time you chage something in your conf.

Please, tell me if it works for you.


Thank you very much!..its worked :D..but i think i will use yoast instead :D.
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.

* * * * * * *

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.


Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

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