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 @addslash {
    return 301 $uri/;

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

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

location /admin {
    try_files $uri $uri/ /admin/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

Self-Hosted Help Desk Software by SupportPal.


Forgot password?
Register now