News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Wrong cron.php URL

Started by Pyrhel, June 05, 2025, 04:44:47 AM

Previous topic - Next topic

Pyrhel

My forum is in a subdirectory of the root - /forum/index.php.
The cron opens 1x1 image under /forum/cron.php?ts=xxxx.

Strangely Google Search console reports the cron directly under in the root - /cron.php?ts=xxxx. Why is this happening?

It's not a problem, just curiosity why is that.

shawnb61

Yes, Google looks in the wrong place for cron.php when the forum in a subdirectory.  Looks like a longstanding Google bug.

This has been reported elsewhere, e.g.:
https://www.simplemachines.org/community/index.php?topic=589324.msg4177275#msg4177275

I just disallow it in robots.txt to clean up the errors in the search console. 

A different solution is proposed in the thread above, to help Google find the right location.
A question worth asking is born in experience & driven by necessity. - Fripp

Advertisement: