Knowledge Base

Premium URL Shortener

What is the NGINX rewrite rules for Premium URL Shortener

To make Premium URL Shortener and Premium Media Script work on NGINX, you will need to add a code in the conf file.

The following code has been tested and it works fine. Please note that this code must be added to nginx.conf and you will need restart your server for the change to apply. The code below should be added within the server { } block.

location / {
  try_files $uri $uri/ =404;

   if (!-e $request_filename)
        rewrite ^/admin/(.*)?$ /admin/index.php?a=$1 last;
        rewrite ^/(.*)$ /index.php?a=$1 last;

Was this helpful? Yes No

Still have questions?

If you still have questions, feel free to open a ticket and we will gladly help you out!

Open a ticket