Rewrite a Shortened URL to a Pretty URL?

slevytam nginx-forum at
Sat Sep 1 17:46:46 UTC 2012


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 but it does not
work for

Also, it does not leave the url as entered.  So, for example, if you input it changes the address bar
to instead of staying at the pretty

Any thoughts?



Posted at Nginx Forum:,229974,230447#msg-230447

More information about the nginx mailing list