404s on all pages except homepage

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?

– Answer –

  • 22 February 2012: Answer by Akash for 404s on all pages except homepage -

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

  • 21 February 2012: Answer by kummel for 404s on all pages except homepage -

    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.

  • 21 February 2012: Answer by jlstrecker for 404s on all pages except homepage -

    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.

  • 21 February 2012: 404s on all pages except homepage -

    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?

Leave a Reply