Henrik Carlsson's Blog

Allowing rewrite of permalinks on WordPress

Turns out the problem I was having with everything except the front page was due to permalink rewrites not working. It seems three things were incorrectly setup.

First, the WordPress folder wasn’t writable by the www-user.

Secondly, this needed to be done:

You have to edit the Apache conf file (in Ubuntu 14.04: /etc/apache2/apache2.conf) and change the AllowOverride setting from None to FileInfo

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride FileInfo
Require all granted
</Directory>

You may need to enable the Rewrite module:

sudo a2enmod rewrite

Brian Milnes on StackOverflow

Posted by Henrik on

Inga kommentarer

with permalink

It appears things only semi-work on the new server. All the backend stuff works and the front page works but no other page or feed does. Strange.

Posted by Henrik on

with permalink

Yep, the site is moved to the VPS now and it is indeed faster now than before.

Posted by Henrik on

with permalink

Holy smokes, it seems like it worked!

(This boring picture is mostly for testing purposes.)

Posted by Henrik on

with permalink

DNS records are now changed. Waiting for propagation and trying not to bite my nails.

Posted by Henrik on

with permalink