Hi, Thank you for your reply. Sorry for the late response but the forum didn't notify me of your post. I tried your suggestion. rewrite ^/(.*?)/.*$ /entry/index.php?id=$1 permanent; It works for http://www.domain.com/1234/pretty-url-goes-here but it does not work for http://www.domain.com/1234. Also, it does not leave the url as entered. So, for example, if you input http://www.by slevytam - Nginx Mailing List - English
Hi, I was hoping someone could help me with a rewrite question. Currently, I use a basic rewrite for my url shortener. if (!-e $request_filename) { rewrite ^/(.*)$ /entry/index.php?id=$1 permanent; } This forwards a url like http://www.domain.com/1234 to http://www.domain.com/entry/index.php?id=1234. It works great. The problem is that I've realized that pretty urls are sby slevytam - Nginx Mailing List - English