Forum Discussion
Redirect friendly host name to https URL
User enters: soc1
iRule redirect: https://epwork.ep.corp/bu/it/soc
"soc1" is a friendly name, or internal DNS host record that points to the load balancer virtual host IP 172.20.110.204
"epwork" also points to the same IP 172.20.110.204
when HTTP_REQUEST {
if { [HTTP::host] contains "soc1" } {
HTTP::redirect "https://epwork.ep.corp/bu/it/soc1"
} }
If i simply type in "soc1" in internet explorer and hit enter, it brings me to the Bing search engine.
If i type in "http://soc1" it gives me an "Internet Explorer cannot display the webpage" error page.
When going directly to "https://epwork.ep.corp/bu/it/soc1", the page loads as expected.
If possible, I don't want to have to manually type http:// before "soc1". I simply want to type in "soc1" and have it redirect to the URL "https://epwork.ep.corp/bu/it/soc1".
Is there a better way to go about this, or am i doing this all wrong?
- John_Matlock_42NimbostratusIf i type in "http://soc1" it gives me an "Internet Explorer cannot display the webpage" error page.
- Nathan_Houck_65Nimbostratusyou may want to try using a matchclass and datagroup combination for this:
- Joel_MosesNimbostratusQuick question: I presume you're using IE9 here? If that's the case, then follow this tortured logic...
Recent Discussions
Related Content
* 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