Enable mod rewrite in Apache2
- tell apache to enable the module
sudo a2enmod rewrite
- edit apache’s configuration file and change allow override from None to All
sudo vim /etc/apache2/sites-available/default
- restart apache
sudo /etc/init.d/apache2 restart
- test by creating an .htaccess file containing the following code
Options +FollowSymLinks Redirect /test.html http://www.ubuntu/com
- You should be redirected to the Ubuntu site instead of getting a 404 error.
Advertisement
Hi,
Thanks for your tip. I successfully enabled the clean urls in my drupal installation on localhost (running on Ubuntu 9.04)
Thanks.
meraDrupaDev
April 26, 2009 at 10:47 pm
But after changing on terminal override to all how can i save it and may be its a silly question but i am a newcomer in ubuntu.
max
July 24, 2009 at 9:08 pm
Thank you , I do it and work fine
Regards
ahmed
October 26, 2009 at 1:49 am
Wow loved reading your post. I added your rss to my reader.
LasePaiva
November 27, 2009 at 7:02 am
nice tutorial, i posted it to my blog..
thanks..
nandrito
December 2, 2009 at 7:44 am
Wonderful, short and pointed.
Thanks a lot.
Sameer Pal Singh
December 28, 2009 at 6:17 am