Created
October 1, 2020 15:40
-
-
Save tallesairan/3514d7515ae8c86efc04ba66efd62e3e to your computer and use it in GitHub Desktop.
sendy nginx rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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