
Seperti biasa, sebelum menginstall mod_rewrite kita akan mengupdate repository nya terlebih dahulu.
[code]
sudo apt-get update -y
[/code]
kemudian jalankan perintah
[code]
sudo a2emmod rewrite
[/code]
setelah itu restart apache2 nya.
[code][/code]
systemctl restart apache2
[/code
demikian semoga membantu.