• Skip to content
  • Skip to primary sidebar

WBXPress.NET

Website Developement Guide

WordPress Permalink in Nginx

20th March 2015 by wbxpress Leave a Comment

To set up pretty permalink in wordpress in a LEMP environment add the following line inside location / block:

nano /etc/nginx/sites-available/example.com
try_files $uri $uri/ /index.php?q=$uri&$args;

Off course you should remove try_files if there is any inside location / block.

Related Posts:

  • Host Multiple Sites with SSL in Ubuntu 18.04
  • Multiple WordPress with SSL in Ubuntu 16.04
  • Install a Porkbun SSL on NGINX for WordPress
  • Installing WordPress MU in LEMP stack

Filed Under: nginx, wordpress

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Most Popular Posts

  • Remove/ Defer Render-blocking JavaScripts
  • Customizing Genesis eleven40-pro Theme
  • Free Genesis Child Theme by WBXPress
  • Host Multiple Sites with SSL in Ubuntu 18.04

Categories

  • apache2
  • bbPress
  • domain
  • FTP
  • google
  • myBB
  • mysql
  • nginx
  • php5
  • php7
  • phpBB
  • sphinx
  • SSL
  • troubleshooting
  • Uncategorised
  • wordpress

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org