Forum Discussion
Seckin_149390
Nimbostratus
Oct 24, 2016Certificate Error on Website
Hi All,
we have a multidomain certificate for my customer website and it works ok. My customer wants to redirect connections to www subdomain of the website. For example ;
if end user types...
Tom_De_Boeser_1
Nimbostratus
Oct 25, 2016Aside from the semicolon on the redirect line ( it probably doesn't matter ), the code looks good. If this iRule is on the HTTPS VIP, then you might need to insert a log line in the iRule to verify that the 'if' statement is executing, and then test the redirect line.
when HTTP_REQUEST {
if { (([HTTP::host] equals "unlumenkul.com") && ([HTTP::uri] equals "/")) } {
log local0. "\[HTTP::host\]: [HTTP::host]"
HTTP::redirect "https://www.unlumenkul.com/";
}}
With this you should be able to verify that the if statement executes. If you don't see a log entry, it means the 'if' doesn't execute. You can move the log code above the 'if' statement to see what hostname is.
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