Forum Discussion

purna_256577's avatar
purna_256577
Icon for Nimbostratus rankNimbostratus
Nov 07, 2016
Solved

Request for redirection of URL from https://abc.com/ to https://abc.com/irj/portal

Request for redirection of URL from https://abc.com/ to https://abc.com/irj/portal and after redirection /irj/portal should not be visible to the users on the browser. Please let me know if you have any irule achieve above requirement.

 

VIP:10.x.x.x

 

  • Hi Purna,

    Try this irule. Hope it will work for you.

        when HTTP_REQUEST {
        if { [HTTP::host] eq "abc.com" and [HTTP::uri] starts_with "/" } {
         HTTP::header replace Host "https://abc.com/ijr/portal"
         }
        }
    

3 Replies

  • Hi Purna,

    Try this irule. Hope it will work for you.

        when HTTP_REQUEST {
        if { [HTTP::host] eq "abc.com" and [HTTP::uri] starts_with "/" } {
         HTTP::header replace Host "https://abc.com/ijr/portal"
         }
        }