I have a Drupal 5.2 installation in the root of my domain which has been running fine with clean urls for ages - but they seem to have suddenly stopped working today! :-(

I discovered this when I went to login this morning and got my 'site off-line' page. So I tried the /?q=user page and was able to log in ok, but found that although all my menu items were still set to clean urls, I had to add the ?q= part into each page address in order to access it.

The only thing I'm aware of having changed since it was working fine, is the installation of Gallery2 (in a sub-directory) and of the gallery module. I've no idea if this could possibly have affected my clean urls, but I have removed the Gallery2 installation and also the module, and I can't see any lingering changes in my Drupal database, but I still have the same problem.

By manually going to mysite.tld/?q=admin/settings/clean-urls I saw that clean urls were still set to enabled, so I thought (perhaps foolishly?!) that it might be worth disabling them, and then trying to re-enable them. Disable appeared to go ok - and menu items now all contain the ?q= part.

If I now click on the 'Run the clean URL test' (which appears to link to mysite.tld/admin/settings/clean-urls) I am redirected to mysite.tld/?q=node (i.e. my homepage) with no apparent effect.

If I use Firefox Web Developer to force the radio buttons to be accessible and to try and enable clean URLs, I am redirected to mysite.tld/node and the page doesn't load. If I type in the ?q= part I find that my menu items have reverted back to clean urls, but the site doesn't actually work with them - i.e. I still need the ?q=

I am completely at a loss - does anyone have some advice as to what may have caused this and how I can fix it?

Comments

cwgordon7’s picture

How are you doing your clean urls? This could have something to do with a module bug if you are using a module, like pathauto, to take care of your clean urls.

-cwgordon7

Dan DG’s picture

Hi cwgrodon7 - thanks for your quick reply!

I'm not sure exactly what you mean by how I'm doing my clean urls. I do have pathauto installed, but it's not been altered in any way for months now. Apart from the (now removed) Gallery2 installation, the only changes to the site in the last week have been content creation (I think just book and story nodes) - no other admin changes at all, and the clean urls were working without trouble before today. Perhaps this points towards some change my host may have made?

ChrisKennedy’s picture

Check that your .htaccess file still exists and has the normal Drupal stuff in it. Otherwise you should email your host and make sure they still allow to override Options for your site directory.

Dan DG’s picture

I tried replacing the .htaccess file with a backup from a few days ago when all was working well and now it's all behaving correctly again!!!

Thank you so much guys! This really is the best support forum I've ever used. A little knowledge can be a dangerous thing - but thankfully this forum's there for when things do go wrong! I love Drupal - but I'm no expert and I think I would probably have given up long ago without the help this forum has provided!

ChrisKennedy’s picture

Glad to hear it :)