Rewrite Rules for NGINX Server



In this article, we will share Rewrite Rules for NGINX Server. Please edit your NGINX configuration file and add these lines:

location ~ ^([^.\?]*[^/])$ {
try_files $uri @addslash;

location @addslash {
return 301 $uri/;

location /admin {
try_files $uri $uri/ /admin/index.php?$query_string;

location / {
try_files $uri $uri/ /index.php?$query_string;

Once you placed these codes, everything should work fine, in case it's not please don't hesitate to create a support ticket with SSH details.

If you are using any script with old User Interface then you need to follow this tutorial for NGINX Server.


0 out of 0 people found this article useful.

Related Articles


Forgot password?
Register now