/ home / nginx / fix wordpress permalinks in nginx /

Fix Wordpress permalinks in NGINX

11:14 pm, February 25, 2016 530 88 0.4 @ 200 wpmrate up KruXoR
1

Original Post Date: 5:06 am, August 8, 2014

Well not necessarily fix, but make them work under nginx anyway.

Basically, if you set the permalinks to the nice structure of sitename.com/my-nice-title they wont work by default, you will need to add this to your config. this will go under the server block for your site.

location / { index index.php index.html index.htm; try_files $uri $uri/ /index.php?$args;
}

 

11:14 pm, February 25, 2016 530 88

Comments

Reports

Add Report

Report's

KruXoR

This is a site where i basically just post whatever i feel like at the time, it has no one particular topic but usually. Just my ideas and links and random bits of code that i find.

Follow Me..

@KruXoR

Minecraft

Looking for the kruxor minecraft server mc.kruxor.com? we have migrated it to... icekraft.com if you want to play on there just connect to play.icekraft.com:25535 or mc.kruxor.com should also still work.

Favorite Links