Jul 13

Go to /etc/apache2/sites-available and edited the file default

# vi /etc/apache2/sites-available/default
NameVirtualHost *

ServerAdmin admin@site.com
DocumentRoot /var/www/

Options FollowSymLinks
AllowOverride None

Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# Commented out for Ubuntu
#RedirectMatch ^/$ /apache2-default/

You need to changes AllowOverride from none to all and restart the apache
# /etc/init.d/apache2 restart

and test your .htaccess again
Order allow,deny
Deny from all

2 Responses to “How to enable .htaccess on apache2 ubuntu”

  1. admin Says:


  2. admin Says:

    test keduax

Leave a Reply