Misty_Spillers
Sep 20, 2016Nimbostratus
Rebranding website redirect question
I have to do a redirect where i thought simply this would work:
if { [string tolower [HTTP::uri]] starts_with "/" } {
HTTP::redirect "http://www.newsite.com/[HTTP::uri]"
} else {
Nothing is simple I find out.
The first part of the uri (between the first /???/) always matches but everything else is different. I was wondering if there is a way to do this.
In other words
the user goes to www.oldsite.com/randomuri/whatever
They would be redirected to www.newsite.com/randomuri
I know I can make a rule for each of them, I was just hoping I wouldn't have to.