Konfigurasi Nginx Rules Untuk Sendy

regcleaner

Well-known member
Ini kondisi jika instalasi sendy dipasang pada sub-folder /sendy/
location /sendy/ {​
try_files $uri $uri/ /sendy/index.php?$args ;​
if (!-f $request_filename){​
rewrite ^/sendy/([a-zA-Z0-9-]+)$ /sendy/$1.php last;​
}​
}​
location /sendy/l/ {​
rewrite ^/sendy/l/([a-zA-Z0-9/]+)$ /sendy/l.php?i=$1 last;​
}​
location /sendy/t/ {​
rewrite ^/sendy/t/([a-zA-Z0-9/]+)$ /sendy/t.php?i=$1 last;​
}​
location /sendy/w/ {​
rewrite ^/sendy/w/([a-zA-Z0-9/]+)$ /sendy/w.php?i=$1 last;​
}​
location /sendy/subscribe/ {​
rewrite ^/sendy/subscribe/(.*)$ /sendy/subscribe.php?i=$1 last;​
}​
location /sendy/unsubscribe/ {​
rewrite ^/sendy/unsubscribe/(.*)$ /sendy/unsubscribe.php?i=$1 last;​
}​
location /sendy/confirm/ {​
rewrite ^/sendy/confirm/(.*)$ /sendy/confirm.php?i=$1 last;​
}​
 

Top