Wednesday, April 6, 2011

Enable clean urls in Ubuntu


  1. Ensure that mod_rewrite is enabled for Apache 2:
     % sudo a2enmod rewrite
  2. Edit Apache 2 configuration to allow Drupal's .htaccess file to be used. In file /etc/apache2/sites-enabled/000-default, inside the tag Directory /var/www/, replace the line
    AllowOverride none
    with
    AllowOverride All
  3. Restart Apache 2:
    % sudo /etc/init.d/apache2 restart

No comments: