Forum Discussion
Redirect full url with wildcard subdomain
We are switching domain names and need to redirect old urls that are in the wild.
So after the domain switch over I want to put an iRule on the old virtual server to do this. It needs to maintain the subdomain and the query string. I don't see how to maintain the subdomain.
https://123.old-domain.com/qwe/asd/zxc https://456.old-domain.com/qwe/asd/zxc
to redirect to
https://123.new-domain.com/qwe/asd/zxc https://456.new-domain.com/qwe/asd/zxc
Thanks
- SurgeonRet. Employee
You can create VIP, assign client ssl profile, since you are using https and create iRule which will send new URL as part of HTTP 301 or HTTP 302 response in case if HTTP request contains old domain names
- SurgeonRet. Employee
this can help you create an iRule https://devcentral.f5.com/wiki/iRules.HTTP__host.ashx
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