Front page works; the rest returns "URL not found" I have been trying to migrate a Drupal site to do some development locally. After moving the code, restoring the DB and doing some settings, I got the front page of the site to show up (minus some images). However, when I click on any of the menu links, I get the following error:


  Not Found
  
  The requested URL was not found on this server.


Now, I made sure that my base_url is set properly in settings.php. No trailing slash and all that. Currently it is of the type: http://example.com/drupal_directory, where drupal_directory is the directory with the site within Apache's /html folder.

What can I do to fix this? Is there some kind of a setting I am missing? There are no errors in PHP error log.
Note: This answer tells you how I fixed it in Ubuntu. I don't know about other operating systems, but you might wanna look up if
  mod_rewrite exits there too. If yes, you probably need to enable it
  there too.


I had that happen to me. I fixed it by enabling mod_rewrite.

In your terminal, type:

sudo a2enmod rewrite




sudo service apache2 restart