Forum Discussion
Richie_66774
Nimbostratus
Aug 01, 2008Domain name with SSL Rewrite
I was trying to do a domain name rewrite to avoid SSL popups:
This is not good code but to help with my explaination this is what I am trying to accomplish:
1. I need the Domain to always be SSL or when you remove the httpS:// it still shows up. I also need the domain to be SSL when you come into the site correctly.
2. I also need the domain to go to WWW.DOMAINNAME.COM so we do not get the SSL popups when people come into our site with the non-FQDN.
when HTTP_REQUEST {
if {[HTTP::host] contains {DOMAINNAME.COM}}
{HTTP::redirect "https://www-[getfield [HTTP::host] : 1][HTTP::uri]" }
}
Thanks DevCentral!!
Rich
- Singh_74932
Nimbostratus
May be some thing like this : - Richie_66774
Nimbostratus
Thank you for the reply I had to get something out for our sites currently this is what I am using which is very simular to what you just posted; we host many sites in our LTM and I was hoping there is a way to make this a little more dynamic rather than my static irule. - Richie_66774
Nimbostratus
Hello everyone, does anyone know how to handle HTTPS to HTTPS? Example - Richie_66774
Nimbostratus
Thank you for your response I tried the code above and had a couple of questions if I may:
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