nginx url rewrites for php-urls
Posted
by
Tronic
on Server Fault
See other posts from Server Fault
or by Tronic
Published on 2012-11-23T09:05:57Z
Indexed on
2012/11/23
11:02 UTC
Read the original article
Hit count: 200
i have to permament redirect some old urls in nginx. the old urls are old-style php urls including a parameter for loading content. they look like this:
http://www.foo.com/index.php?site=foo
http://www.foo.com/index.php?site=bar
i want to redirect them to other urls like:
http://www.foo.com/news
http://www.foo.com/gallery
any advice on how i can achieve this? my tries failed. thanks in advance!
© Server Fault or respective owner