Forum Discussion
Sean_O_Brien_65
Feb 23, 2011Nimbostratus
So after some more playing, I ended up with this, which works fine:
when HTTP_REQUEST {
if {[HTTP::uri] eq "/proposals/AccessControl.htm" } {
HTTP::redirect "http://domain2.com/sub1/Construction/Proposals/AccessControl"
}
if {[HTTP::uri] eq "/proposals/Davis.htm" } {
HTTP::redirect "http://domain2.com/sub1/Construction/Proposals/Maintenance"
}
if {[HTTP::uri] eq "/" } {
HTTP::redirect "http://domain2.com/sub1/Construction"
}
}
My only remaining question is: Can I use a better 'default' for that last line to go to the 'home' of the site than the "/". If people type in anything other than the domain name, or the "/" they will not get forwarded.
Thanks again for the help!