Forum Discussion

Ravi_110217's avatar
Ravi_110217
Icon for Nimbostratus rankNimbostratus
May 02, 2008

webpage redirection

I wanted to redirect following webpage...

 

 

Redirect from

 

www.xyz.com.au to https://www.xyz.com.au

 

 

If you know IRULE , please let me know...

 

Thanks.

3 Replies

  • Hi,

    In 4.x, you can use the following rule on an HTTP VIP to redirect all requests to https with the same host and URI:

    
    redirect to "https://%h/%u"

    If you want to redirect all requests from www.xyz.com.au/ to https, you can add a check of the URI:

    
    if (http_host == "www.xyz.com.au" and http_uri == "/"){
       redirect to https://%h/%u
    }

    Aaron
  • %h is resolved to the Host header value and %u is resolved to the URI.

     

     

    Aaron