Solve permalinks in WordPress on Ubuntu LAMP

I just moved one of my test sites to a new server. And realized that the permalink structure didnt worked after that. I made sure that the .htaccess files where correct, that mod_rewrite was enabled, but still nothing.

So after some searching i found out that you need to set AllowOverride All in the config for apache.

So, first install mod_rewrite

Then edit the config for your default website.
In Ubuntu 14.04 it is called 000-default.conf.

Paste the following at the bottom of the file (change the directory if you are not using the new default /www/html/ structure(

At last, restart the apache service

0 replies

Legg igjen et svar

Want to join the discussion?
Feel free to contribute!

Legg igjen en kommentar

Din e-postadresse vil ikke bli publisert. Obligatoriske felt er merket med *