- Joined
- Feb 11, 2010
- Posts
- 3,036
- Reaction score
- 110
Anyone here know about redirecting on a nginx server
what I'm trying to do is redirect some old asp pages to a flat html page on a site I'm reviving for juice.
I've tried adding
to the config file but now joy I think its something to do with the ? not being escaped properly but I'm dammed if I know how to fix it.
I used to think .htaccess was confusing but trying to find stuff on this is a pain in the backside
what I'm trying to do is redirect some old asp pages to a flat html page on a site I'm reviving for juice.
I've tried adding
Code:
# nginx configuration
location /index.asp?ID=38 {
rewrite ^(.*)$ [URL]http://www.newsite.org.uk/cumbria.htm[/URL] redirect;
}
location /index.asp?ID=39 {
rewrite ^(.*)$ [URL]http://www.newsite.org.uk/greater-manchester.htm[/URL] redirect;
}
to the config file but now joy I think its something to do with the ? not being escaped properly but I'm dammed if I know how to fix it.
I used to think .htaccess was confusing but trying to find stuff on this is a pain in the backside