Help with Google Merchant (index.php?googlecatalog instead of googlecatalog.xml)

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:
Code:
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
... 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.
 

wattacarp

New Member
Can't find a way to delete this, so I'm answering my own question. The answer is from here:
Code:
rewrite ^/googlecatalog(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_googlecatalog=params=$2" last;
 
Top