cancel
Showing results for 
Search instead for 
Did you mean: 

Auto redirect http url to https

SOLVED
sharvan.singh@bt.com
New Contributor

Auto redirect http url to https

Experts,

 

I am new to LB. Have got a requirement to auto redirect from http to https. End users have been given https://abc.com/ URL and its working fine. but if an end user enters http://abc.com/ then URL doesn't work beacuse there is no Virtual server and pool configured for http. management wants to auto redirect to https://abc.com/ url if any user try to acecss http://abc.com/

 

I have tried below but no success.

 

1. 1 virtual servers for https and associated with a pool

2. 1 Virtual server for http and associated default pool (discard)

3. Added below trafficscript for http pool.

 

$rawurl = http.getRawURL();
if( string.contains( $rawurl, "http://abc.com/" ))
{
http.redirect( "https://abc.com/" );
}

 

Can you please suggest how can i achieve it?

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
sharvan.singh@bt.com
New Contributor

Re: Auto redirect http url to https

1 REPLY 1
sharvan.singh@bt.com
New Contributor

Re: Auto redirect http url to https