Hello,
how to write url alias in nginx ?
I have create the url alias before in apache. But, now the web is moved to nginx.
This is the url alias config (using .htaccess) that I have write in apache :
RewriteEngine On # Turn on the rewriting engine
RewriteBase /revive
RewriteRule ^gambar/(.*)/(.*)$ www/delivery/avw.php?zoneid=$1&cb=INSERT_RANDOM_NUMBER_HERE&n=$2
I have try to write the config for the latest line in nginx using this codes, but it is failed :
server {
...
rewrite ^gambar/(.*)/(.*)$ www/delivery/avw.php?zoneid=$1&cb=INSERT_RANDOM_NUMBER_HERE&n=$2 last;
...
}
Please tell me how create url alias in nginx
Thank you