Nginx Rewrite Rules For Sendy Script

This is the Nginx rewrite rules for the Sendy script. This is the popular script used to send email marketing, which works best with Amazon SES.

rewrite ^/l/([a-zA-Z0-9/]+)$ /l.php?i=$1 last;
rewrite ^/t/([a-zA-Z0-9/]+)$ /t.php?i=$1 last;
rewrite ^/w/([a-zA-Z0-9/]+)$ /w.php?i=$1 last;
rewrite ^/unsubscribe/(.*)$ /unsubscribe.php?i=$1 last;
rewrite ^/subscribe/(.*)$ /subscribe.php?i=$1 last;

location ~ "^/([a-zA-Z0-9-]+)$" {
    try_files $uri $uri/ /$1.php$is_args$args;
}

If you would like to set up your own email marketing portal using Sendy and Amazon SES, you can contact us for a reasonable price.

We will be happy to hear your thoughts

      Leave a reply

      Turnkey Websites
      Logo
      Register New Account
      Login to the site