Wednesday, February 13, 2013

Enable .htaccess ubuntu


  • Open the terminal
  • Edit file in /etc/apache2/sites-available. Update AllowOverride to All

  • <Directory /var/www/webdir>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
      </Directory>
  • Reload Mod
    a2enmod rewrite
  • Restart apache
    /etc/init.d/apache2 restart

  • 0 comments:

    Post a Comment