WordPress – Changing Permalinks


in the net you find tons of posts what changes you have to made if you wanna change your permalinks to postname. But mostly in combination with an apache webserver.

So im using nginx and this is a bit more difficult.

But i found the solution.

Simply add this line to your vhost configuration:

if (!-e $request_filename) {
rewrite ^.*$ /index.php last;

For apache just place an empty .htaccess file in your wordpress-folder, give it 666 permissions and insert this:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *