How to Activate an .htaccess file

Hi, i tried to enable the htaccess according with this cloud support link even, i followed this suggestion for any other who posted the same question time ago.

within this path /etc/apache2/sites-available/ I found these files

  • 000-default.conf
  • default-ssl.conf

I added the following block inside the first file

<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory>

But after restart the apache and check I receive this error message on my browser.

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.18 (Ubuntu) Server at Port 80

So, please I beg your support to fix this problem because I’m required to enable htacess for my enterprise.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

It sounds like your .htaccess file might indeed be enabled, but that you have an error in your .htaccess file.

Try commenting out everything in your .htaccess file, and see if you still get the error. If you don’t get an error, then uncomment each item one set at a time until you find the error.

Wayne Sallee

Hello friend!

Check /etc/apache2/apache2.conf and see if one of those “Directory” settings exists like the one you put in your virtual host, it may be possible that one is overriding it there, and that you can just change it to “AllowOverride All” as well.

Kind Regards, Jarland