I have a Drupal 7 website and some other software on the same server - both in the public_html directory - and it has worked fine for years.

Now, when the other software tries to run its own cron, it goes to a Drupal page with a 404 error message instead of its own cron.php page.

But if I I first clear the caches on the Drupal site, the other software's cron works fine and goes to its own cron.php page within its own directory.

The public_html directory has the Drupal instalation in it as normal and and also a directory with the other software like this:

includes
misc
modules
profiles
scripts
sites
themes
othersoftware
.gitignore
.htaccess
authorise.php
etc.....

When the other software tries to run cron at www.mydomain.com/othersoftware/cron.php, it brings up a Drupal page with a 404 error saying the page can't be found.

But if I clear the cache on the Drupal site, the othersoftware cron works fine.

I have no idea what could be causing this as it only started a few days ago when I upgraded to 7.31. I've tried deleting and reinstalling all the Drupal files but it doesn't help.

Any suggestions very gratefully received.

Comments

VMII’s picture

is the drupal .htaccess file set to ignore the non-core subdirectory?

https://www.drupal.org/node/30334

webnation’s picture

Thanks for your help.

I added the following to my htaccess file:

RewriteEngine on
#
# stuff to let through (ignore)
RewriteCond %{REQUEST_URI} "/othersoftware/"
RewriteRule (.*) $1 [L]
#

But it hasn't helped.

I can still access all other pages within the 'othersoftware' directory without them resolving as Drupal pages - but stil mysite.com/othersoftware/cron.php resolves as a Drupal page.

Perhaps I've done it wrong?