Permalinks and reverse NginX proxy

If you have a Apache2 web server behind a NginX reverse proxy, permalinks will not work.
In this case permalinks do not work with the .htaccess file from WordPress.
If you change this in your apache2 virtual host permalinks will work.

Add this between the

<Directory /dir/to/wordpress/folder> Options Indexes FollowSymLinks AllowOverride None Order allow,deny allow from all RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </Directory>

Why permalinks?

Say your website is about ‘Backpacking around Australia’, and the page you are optimising is all about backpacking advice in Melbourne.
By default WordPress will display your internal links something like this:

Do you ever wonder what a search engine thinks about that? The URL doesn’t have any relevance to your webpages topic. When you add appropriate names for your permalink it takes away part of the guesswork google has to do and helps to better identify the condense of the page – hence resulting in a better organic search result!