• Drupal pages being served as 404s, forms not being saved?

    A couple of times I’ve been in the situation where I can browse around a newly installed Drupal site fine, but none of the forms will save and all pages are served with a status code 404 (as shown in Firebug or similar tools). No errors were logged.

    The problem turned out to be that mod_rewrite wasn’t enabled. As I run Ubuntu (a Debian-based distro) I needed to run:

    sudo a2enmod rewrite
    sudo service apache restart

    a2enmod is used for enabling apache2 modules, and you need to tell apache to re-read the configuration for the changes to apply.

    Categories: Drupal

    Tags: ,