Enabling .htaccess file to rewrite path (not working) in ubuntu

For apache version 2.4 and later, you have to go to
firstly enable a2enmod
sudo a2enmod rewrite 
and

sudo service apache2 restart

sudo nano /etc/apache2/sites-enabled/000-default.conf
add these lines at end
<Directory /var/www/html>
    AllowOverride All
 </Directory>
and
sudo service apache2 restart

No comments:

Post a Comment

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...