Rewrite rules not working
khav
nginx-forum at forum.nginx.org
Sun Sep 11 12:12:00 UTC 2016
I am trying to make pretty urls using rewrite rules but they are not
working
1.
https://example.com/s1/video.mp4 should be rewrite to
https://example.com/file/server/video.mp4
location = /s1/(.*)$ {
rewrite ^/s1/(.*) /file/server/$1 permanent;
}
2.
https://example.com/view/video5353 should be rewrite to
https://example.com/view.php?id=video5353
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269458,269458#msg-269458
More information about the nginx
mailing list