rewrite rule for WordPress with Nginx to avoid non standart permalink error


nginx error…wait. do you ever compare nginx with another ones

People find unable to get permalink work in WordPress when using Nginx stack. It’s because Nginx rewrite rule for WordPress has been set up.


this instruction for webuzo cpanel

  • First Step is :

nano /usr/local/apps/nginx/etc/conf.d/webuzoVH.conf


if (!-e $request_filename)

rewrite ^(.+)$ /index.php?q=$1 last;


that code write in end of this code

include         /usr/local/apps/nginx/etc/conf.d/common;

  • Restart your Nginx with this code :

service nginx restart

  • Next Step is add the rewrite in 


add the following to the file:

#For wordpress

if (!-e $request_filename)


    rewrite ^(.+)$ /index.php?q=$1 last;


  • last step restart again your nginx

remember different from apache. every change in nginx don`t forget to restart to make your change work.

service nginx restart


0/5 (0 Reviews)


Please enter your comment!
Please enter your name here