Community Documentation

Clean URLs for Ubuntu 10.04

Last updated March 28, 2011. Created by faqing on October 19, 2010.
Log in to edit this page.

For Ubuntu Server 10.04, one needs to edit the file: /etc/apache2/sites-enabled/default
If there is no such file, try this one: /etc/apache2/sites-enabled/000-default

sudo a2enmod rewrite

sudo nano /etc/apache2/sites-enabled/default

Change (line 7 and line 11), "AllowOverride None" to "AllowOverride All".

Save and exit.

Restart Apache
sudo /etc/init.d/apache2 restart

Comments

Acquia

I installed Acquia on ubuntu 10.04 desktop but clean url's still doesn't work with the above modification.

- solved -

I found the solution were it always was - the Acquia website. Add "RewriteBase /acquia-drupal6" to .htaccess

http://acquia.com/documentation/acquia-deb-package

Still having problems

Have tried these... and still getting the message "your system configuration does not currently support this feature". Any further good ideas?

Solved my problem

OK have solved it.
In my case I needed to change RewriteBase in .htaccess to:
RewriteBase  /$MySiteName

In my case this is
RewriteBase /scouts

Yes it works!

Thanks so much - yes it does.

So simple, isn't it, but it took me hours to find salvation in your post! This came close to driving me to despair.

Thanks, changing

Thanks, changing /etc/apache2/sites-enabled/000-default like you said was the ticket - great! It's funny because I just set-up another Ubuntu 10.04 server and installed a Drupal site and was able to get clean URLs working without having to modify that file. Anyway, thanks again!

Clean URL Fix

About this page

Drupal version
Drupal 7.x
Audience
Documentation contributors
Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.