Nginx Expression

None 2016-11-27 13:38:11

properties

* config location / { rewrite ^/v/(.*)$ /index.html?q=$1; }

input

1
2
3
4
/v/home
/v/bbs
/login
/1234

output

Rewritten URL Parameter  
1
/index.html
q=home
 
2
/index.html
q=bbs
 
3
Null
 
4
Null
 

comments