<div dir="ltr"><div>Try the below one in the server context ..outside all location blocks. You can enable dedug log and do rewrite_log on; to see if its matching etc. Good Luck!</div><div><br></div>rewrite ^/galleries/album-set/album-2/(.*)-single\.php /galleries/album-set/album-2/single.php?id=$1 last;<div class="gmail_extra"><div></div>
</div></div>