How to rewrite in nginx

yekupload5636

Member
YetiShare User
Dec 29, 2015
42
0
6
37
yekupload.ir
Hi,
How to rewrite in nginx from the address below:
http://domain.com/plugins/imageviewer/site/direct.php?s=53N9&/Mypic.jpg

To the address: http://domain.com/images/direct/53N9/Mypic.jpg

Thanks
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
check this. https://stackoverflow.com/questions/4329316/how-to-write-a-url-rewrite-in-nginx and maybe you can create your own regex rewrite.