kevinmc
Jun 30, 2017Altocumulus
URL rewrite
I am trying to rewrite a URL for users who are using an old URL.
So if the user enters sharepoint.abc.net I want to redirect them to home.sharepoint.abc.net
I have tried an irule as below
if {[string tolower [HTTP::Host]] starts_with "sharepoint.abc.net"} { HTTP::header replace Host "home.sharepoint.hscni.net" }
But it doesn't work. Can someone give the correct code or is there another way to do it?