
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 http://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
[...] http://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