My CakePHP (v2.5.5) application has a dynamic sitemap that uses various methods to generate links (such as /sitemap/career-center
), and then passes these links to Router::url($generated_url, true)
.
My sitemap is supposed to be available at the url http://example.com/sitemap
(the default route) - which is working fine. However, for some reason, Google is finding my sitemap at crazy urls such as:
http://www.example.com/index.php/forums/general/pt-ceus/js/views/jobs/general/img/og/pt-jobs/pt-ceus/general/general/sitemap
We don't even have a forum anywhere in our system, or any mention of one. pt-jobs
, pt-ceus
, and general
are all different areas of our website. js
, img
, and so on, are directories with static assets. But for some reason, this is routing successfully to my sitemap.
In turn, the sitemap found at this random url is populating every link within it with the same gibberish, saturating Webmaster Tools with 500 errors. For some reason, the sitemap is accessible at that non-sense url, but the generated linked within the sitemap that use the same structure all produce errors (as expected).
My question is this:
- Do you have any idea what is going on?
- How is Google finding these random urls, and why in the world are they successfully routing to my sitemap?
If you need any more information, let me know and I'll update with that info.