As I was installing the latest Wordpress on my localhost, I found out that my mod_rewrite wasn’t working properly. So What I did was first I typed:

sudo apache2ctl -l

To know if this module is already loaded. Turns out it’s not, so what I did after that was I typed in:

a2enmod rewrite

To enable the mod_rewrite module. So i tested accessing my localhost link and it didn’t work. I checked back by typing the first command line and it says that the module isn’t enabled yet. So what I did next was I typed in:

Know Thy Enemy full movie

sudo gedit /etc/apache2/sites-available/default

Then I looked for AllowOverRide and change it from None to All

I restarted Apache2 by typing:

sudo /etc/init.d/apache2 restart

And everything works perfectly fine! My mod_rewrite is working!