Forum Discussion
Hoang_Hung
Aug 07, 2020Cirrus
Redirect IP to domain name
Dear all My question is how can I redirect a user to a domain if he uses an IP instead of the domain. Example: http:10.10.10.15//Default.aspx?tabid=110 Redirect to https://education.mm//Defau...
Aug 07, 2020
Hi Hoang Hung,
Can you try this rules?
iRule for http VS:
when HTTP_REQUEST {
HTTP::redirect "https://education.mm[HTTP::uri]"
}
iRule for https VS:
when HTTP_REQUEST {
if { [HTTP::host] equals "10.10.10.15" } {
HTTP::redirect "https://education.mm[HTTP::uri]"
}
}
- Hoang_HungAug 08, 2020Cirrus
Thanks eaa
I will try it.
Thanks
Hung Hoang
- zeeguyFeb 10, 2023Nimbostratus
I am looking to do a similar solution and wanted to check if the solution given by Enes worked or not.
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