I'm running Drupal 7, and I've cleared the cache through drush many times (drush cc all). I'm trying to access any subsequent pages beyond the front page and it results in a "Object not found error" error.

Does anyone have any idea? I feel like it's most likely an Apache or site configuration issue but I can't figure out what it is.

  • 2
    How does the link look? Is it an 404 from Drupal or one from Apache? If Apache, My blind guess would be that clean URL's aren't working...
    – Berdir
    Commented Jun 24, 2011 at 20:16
  • it's from apache. "Object not found" you're probably right there!
    – chrisjlee
    Commented Jun 24, 2011 at 20:21
  • Shoot.. guess it was already turned on.
    – chrisjlee
    Commented Jun 24, 2011 at 20:48

2 Answers 2


Sounds like the problem is that clean URL's are enabled in Drupal but not supported by your Apache configuration (make sure that mod_rewrite is enabled and the folder/vhost has AllowOverrides enabled) or the .htaccess file is missing.

You can verify that this is the problem by accessing the non-clean version of the URL. For example, instead of example.org/something, try example.org/?q=something.

See http://drupal.org/getting-started/clean-urls for more information.

  • How would you enable AllowOverrides for the folder/vhost ? That's usually in the /opt/lampp/etc/http.conf file correct?
    – chrisjlee
    Commented Jun 24, 2011 at 21:33
  • Add AllowOverrides All. Search for that on the linked page for more details.
    – Berdir
    Commented Jun 24, 2011 at 21:45
  • Ah AllowOverride All without the 's'
    – chrisjlee
    Commented Jun 24, 2011 at 22:09

Change the following line in the .htaccess worked for me,

RewriteRule ^ index.php [L]

so it would now be:

RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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