-
- 10 Posts
Hi again! I have installed a sitemapFriend extra to create sitemap.xml. Generally everything is fine - I can access this file via http:/myportal/sitemap.xml.
BUT this file doesn`t really exist in the root folder. So, when I try to submit it in my googlewebmasters profile, it returns 404-error because there is no such file there. How can I fix it and make google accept it?
[ed. note: warior30 last edited this post 9 years, 9 months ago.]
-
- 10 Posts
exside thank you for your answer! The story is that I actually took all these steps and everything is fine but that google issue. The problem is that Google is searching for a file that doesn`t really exist and 404-error is returned. Probably, I should write a script that really creates sitemap.xml in the root folder?
-
- 436 Posts
Have you tried pdoSitemap (part of pdoTools)? I've never had an issue with Google reading it's sitemaps. Yes, the files don't physically exist on the server (in the normal way), just like any other page generated by MODX, but Google shouldn't have a problem reading them.
What is actually displayed in the browser when you open up the sitemap?
-
- 24,544 Posts
I just did this:
http://rtfm.modx.com/extras/revo/getresources/getresources.examples/getresources.google-xml-sitemap
Google is definitely fine with a Resource that outputs plain XML content. Just make sure you point Google to the full URL of the Resource, not to a file.