What is the syntax for a nginx url rewrite -


i have app running @

http://localhost/subfolder/myapp/ 

how create rewrite rule following urls redirected app?

http://localhost/subfolder/myapp/route1 http://localhost/subfolder/myapp/route2 http://localhost/subfolder/myapp/routen ...anyother routes after http://localhost/subfolder/myapp/ 

add block nginx rules

location ~ /subfolder/myapp/.* {   redirect here } 

Comments