I have copied a Drupal installation onto my local machine and I am now running into an issue where only the homepage will load and all other links return a 404.

Clean URLS are enabled but even attempting to manually type the URL like:

?q=admin/module

fails...

I have tried the following:

  • Setting AllowOverride to All
  • including the mod_rewrite module
  • including the usr_module
  • setting the baseURL in settings.php

None have yet appeared to have any effect.

Can anybody suggest anything else to try?

link|improve this question

60% accept rate
check for .htaccess issues or run YOURHOST/update.php from a browser to rebuild menus etc perhaps? – Jimajamma Feb 21 at 16:02
I will... thanks. In the meantime, I turned off CleanURLs in the settings.php file and I can now get access but it's not ideal. – Adam Nuttall Feb 21 at 16:32
feedback

3 Answers

Check that you have the .htaccess file present in your Drupal root folder.

link|improve this answer
feedback

This happened to me once, I copied an entire site folder and clean urls didn't work. I'd copied my files by just selecting all the files in a folder, which doesn't select hidden files, so I was missing my .htaccess file in the drupal root folder.

link|improve this answer
feedback

There's some documentation on clean URLs here -- http://drupal.org/getting-started/clean-urls

At a glance, it looks like you've checked everything in the "Fixing Problems" section except RewriteBase.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.