nginx rewrite url from one site to subdomain in other site

June 14, 2018 126 views
Nginx CentOS

how can i rewrite or redirect url domain.com/l.php?tmplinto[0]=index&tmplname[0]=msiteindex2&tmplinto[1]=middle&tmplname[1]=muserlogin_middle to subdomain.domain.com ?

I have tried to match url but no effect. simple redirec 301 doesnt work.

Be the first one to answer this question.