wattacarp
New Member
I have some issues displaying the .xml files, still trying to figure out. Basically the sitemaps don't show, instead 404 error pages are displayed. (Re)saving the permalinks in the WP admin didn't help, so I use this in my nginx config to make the normal sitemap.xml load properly:
... and then sitemap.xml displays fine in the browser.
Now the Google Merchant URL (googlecatalog.xml) doesn't load the either, showing the same 404 error. I see 2 fixes:
- use the not pretty link to the googlecatalog.xml - if this is possible, what is the URL?
- add some rewrite rule in my nginx config - in this case, what will this be?
Thank you.
Code:
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
Now the Google Merchant URL (googlecatalog.xml) doesn't load the either, showing the same 404 error. I see 2 fixes:
- use the not pretty link to the googlecatalog.xml - if this is possible, what is the URL?
- add some rewrite rule in my nginx config - in this case, what will this be?
Thank you.