Skip to content

Instantly share code, notes, and snippets.

@tallesairan
Created October 1, 2020 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tallesairan/3514d7515ae8c86efc04ba66efd62e3e to your computer and use it in GitHub Desktop.
Save tallesairan/3514d7515ae8c86efc04ba66efd62e3e to your computer and use it in GitHub Desktop.
sendy nginx rules
# nginx configuration by winginx.com
location / {
if ($script_filename !~ "-d"){
rewrite ^/([a-zA-Z0-9-]+)$ /$1.php break;
}
}
location /l {
rewrite ^/l/([a-zA-Z0-9/]+)$ /l.php?i=$1 break;
}
location /t {
rewrite ^/t/([a-zA-Z0-9/]+)$ /t.php?i=$1 break;
}
location /w {
rewrite ^/w/([a-zA-Z0-9/]+)$ /w.php?i=$1 break;
}
location /unsubscribe {
rewrite ^/unsubscribe/(.*)$ /unsubscribe.php?i=$1 break;
}
location /subscribe {
rewrite ^/subscribe/(.*)$ /subscribe.php?i=$1 break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment