First install the apache with this command:
apt-get install apache2
Now use locate to find if the mod_rewrite.so is availble on your server:
updatedb
locate mod_rewrite.so
it will found in “/usr/lib/apache2/modules”
New apache follow some folders to enable and disable mods so now do this:
cd /etc/apache2/mods-enabled
touch rewrite.load
vim rewrite.load
(you may use any editor to edit this file)
Now paste this following line:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
Then edit:
/etc/apache2/sites-available/default
Find the following:
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
and change it to
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
and finally restart Apache:
/etc/init.d/apache2 restart
OK, you done 😀
Posted by Murasame on May 3, 2010 at 4:52 pm
Just do as ROOT…
# a2enmod rewrite
And that should do… creating the rwrite file would be just redundant. The rest is ok.
Posted by anonimo on October 31, 2010 at 11:51 pm
Thanks 🙂
Posted by xpirat3 on November 5, 2010 at 1:31 pm
thanks alot … i have been working on this for hours .
Posted by Requirements | Tinypress Development API on November 12, 2010 at 10:06 pm
[…] Tip: For more information on enabling mod_rewrite, check out this http://www.tutorio.com/tutorial/enable-mod-rewrite-on-apache (Windows) or https://tymonn.wordpress.com/2009/07/31/how-to-enable-mod_rewrite-in-apache2-debianubuntu/ […]
Posted by Configurando o Apache2 no Debian « Blog do Albuquerque on May 9, 2011 at 4:16 am
[…] 1- How enable mod_rewrite in apache2 2- URLs amigáveis – esclarecendo dúvidas 3- Ativando o mod_rewrite LikeBe the first to like […]
Posted by AbdulFattah Popoola on August 5, 2011 at 7:58 pm
Great one; quite easy to follow through
Posted by How to enable mod_rewrite in apache | My Blog on August 16, 2011 at 2:14 pm
[…] https://tymonn.wordpress.com/2009/07/31/how-to-enable-mod_rewrite-in-apache2-debianubuntu/ […]
Posted by George on November 22, 2011 at 7:17 pm
Thanks
Posted by André Araújo on October 13, 2012 at 8:57 pm
Thank you!! Helps a lot!!
Posted by Glenn on October 17, 2012 at 5:27 am
thanks heaps
Posted by Manch :) on October 18, 2012 at 10:34 am
Thank u soooo Much 🙂
Posted by alice on October 25, 2012 at 1:53 pm
Thank you very much, it’s really helpful
Posted by Betro Hakala on November 11, 2012 at 9:56 am
I found a working solution in here: http://ubuntuforums.org/showthread.php?t=1843307 dagn it was easy 🙂 . I still hate to admit, that I’ve been trying to find a real way to get nginx working with joomla.
Posted by Módulos do Apache PHP, suPHP, suexec e rewrite no Linux – Debian « Blog do Albuquerque on December 25, 2012 at 10:19 pm
[…] + PHP + MySQL) no Debian 2- Configurar domÃnios virtuais do Apache em máquina Linux/Debian 3- How enable mod_rewrite in apache2 4- URLs amigáveis – esclarecendo dúvidas 5- Ativando o mod_rewrite 6- Módulos do Apache: […]
Posted by controla on February 12, 2013 at 9:25 pm
Thank you! perfectly summarized!