Permalink not working in ubuntu 20

Hello guys, don’t worry lets have a fun to solve this issue! ha ha ha.

First open up your terminal and type the following command to edit the apach2.conf file.

sudo vim /etc/apache2/apache2.conf

Change the AllowOverride value to ‘All’ from ‘none’ in section as bellow.

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
  </Directory>
sudo a2enmod rewrite
sudo systemctl restart apache2

That’s it.

Leave a Reply

Your email address will not be published.