If incomming URL does not have specific URI's then redirect to external website
For this application, if an HTTP request doesn't come in with certain specific URI's then we want to redirect it to this Content Management front end in the cloud. I tried doing it this way:
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/fmstorefront"} {pool qa.fmmpe-cat.com_80} elseif { [HTTP::uri] starts_with "/medias"} {pool qa.fmmpe-cat.com_80} elseif { [HTTP::uri] starts_with "/fmwebservice"} {pool qa.fmmpe-cat.com_80} elseif { [HTTP::uri] starts_with "/ipows"} {pool qa.fmmpe-cat.com_80} else { HTTP::redirect "; return } }
Now the first 3 elseif could be done better, but this seems to work for now. It's the ELSE that isn't working. When I do this right now, I should get a NOT FOUND from the remote site (as its not up yet) but I'm getting "This site can't be reached"
Any suggestions?