Rewrite rules not working

khav nginx-forum at
Sun Sep 11 12:12:00 UTC 2016

I am trying to make  pretty urls using rewrite rules but they are not

1. should be rewrite to

location = /s1/(.*)$ {
	 rewrite ^/s1/(.*) /file/server/$1 permanent;

2. should be rewrite to

Posted at Nginx Forum:,269458,269458#msg-269458

More information about the nginx mailing list