Forum Discussion
Sam_Hall
Nimbostratus
In the 1st attempt you are rewriting the uri that goes to the server, but the client thinks they are getting what ever page they actually requested. You are going to end up with a lot of extra path information being injected if for example the client already requested http://www.data.gov.bh/wps/portal/data/ it all looks very wrong.
The second attempt is going to cause redirection loops.
I think what you want is something like... if { [HTTP::host] equals "www.data.gov.bh" and [HTTP::uri] equals "/" } { HTTP::redirect "http://www.data.gov.bh/wps/portal/data" }
Sam_Hall
Jul 07, 2014Nimbostratus
Are you sure? When I access those domains the redirects seem to be working as expected. When I type www.data.gov.bh into my browser it lands me on http://www.data.gov.bh/wps/portal/data for example.
What exactly would you like to happen?