Forum Discussion
Sydneysider_895
Nimbostratus
Jun 18, 2010HTTP to HTTPS redirection
Hi There,
Can some please help me write an irule to do the below, redirect a http page to a https page on the LTM
http://blahblah.blah.com.au/LiveStats/login.aspx
to ...
Sydneysider_895
Nimbostratus
Jun 18, 201001070151:3: Rule [DM_iRule] error:
line 1: [parse error: missing close-brace] [{ Check for host 'xx.x.com.au/Livestats/login.aspx'
if { ([HTTP::host] equals "xx.x.com.au") and ([HTTP::uri] equals "LiveStats/login.aspx") } {
If match redirect
HTTP::redirect https://xx.x.com.au/LiveStats/login.aspx
}]
line 3: [command is not valid in the current scope] [if { ([HTTP::host] equals "xx.x.com.au") and ([HTTP::uri] equals
"LiveStats/login.aspx") } {
If match redirect
HTTP::redirect https://xx.x.com.au/LiveStats/login.aspx
}]
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects