Forum Discussion
Daniel_104050
Aug 23, 2012Nimbostratus
Re-direct question
I am new to F5 and I don't know how to word the search to find an answer so please bear with me.
I have external users going to a site that is having its name changed. I want to do a redirect to the new site. easy
The site is an https:// and I need it to redirect to the new https:// I have a cert on the existing and will buy a cert for the new but I want the users to actually see in the browser bar the new address. I am thinking this can be done with a 301 redirect?
can the following be done?
https:// abc.com --> VIP --> redirect in browser --> https:// newabc.com --> VIP
- nitassEmployeeis it same vip or different one?
[root@ve10:Active] config b virtual bar list virtual bar { destination 172.28.19.79:443 ip protocol 6 rules myrule profiles { clientssl { clientside } http {} tcp {} } } b[root@ve10:Active] config b rule myrule list rule myrule { when HTTP_REQUEST { if {[string tolower [HTTP::host]] equals "abc.com"} { HTTP::respond 301 Location "https://newabc.com[HTTP::uri]" } } } [root@ve10:Active] config curl -Ik https://172.28.19.79/something -H "Host: abc.com" HTTP/1.0 301 Moved Permanently Location: https://newabc.com/something Server: BigIP Connection: Keep-Alive Content-Length: 0
- Daniel_104050Nimbostratusthank you for confirming and elaborating on my question!
- Daniel_104050NimbostratusSecond question, can a redirect and stream be in the same irule?
- nitassEmployeeSecond question, can a redirect and stream be in the same irule?why not? anyway, may you explain what you want? so, people here may be able to give you idea or example.
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