Sitemap is including URL of pages in preview mode1 user found helpful
Is it a bug? Those URL resolves to a 404 error if the user is not logged in.
I want to use a cron to auto-generate the sitemap but I cannot do that until this wrong behavior is fixed.
Any ideas? Thank you.
Update: I removed the pages since they were the default "blog" pages included on a C5 installation. My new (and real) site pages seems to work fine and even if a page is in preview mode, the "preview mode URL" doesn't get included in the sitemap file. So this is resolved for me now. Thank you.
As I have friendly URLs turned on, I manually delete from my sitemap.xml any URLs that end in ?cID=xxx
It would be good if the C5 Job to generate a sitemap didn't generate URLS from un-approved pages in the sitemap.xml file.
Incidentally, It's not clear how to generate a sitemap from this documentationhttp://www.concrete5.org/documentation/how-tos/editors/seo-and-conc... - I found your post explained this better i.e dashboard/system/optimisation/jobs
I fixed the issue by:
- approving the page
- delete the page
- empty the trash (accessible via full sitemap/show system pages/http://clip2net.com/clip/m81565/1365598292-clip-16kb.png)
- empty the trash
- clear the cache
The root of the problem still exists but at list i got rid of those pages in sitemap.xml.