Forum Discussion
Goran_Blomquis1
Nimbostratus
May 29, 2008rewrite host in redirect
Hi Devcentral and all users.
I have a case where I need to rewrite host in 302 redirect. It´s work fine but theres a lot of hosts behind the F5 and they need to keep hostname intact (no...
hoolio
Cirrostratus
May 29, 2008The regsub will replace /*.*.*/ with /x.external.com/ in the Location header value, so yes, the URI will be preserved.
Here's a demonstration:
% regsub -nocase {/[a-z]*\.[a-z]*\.[a-z]*/} https://my.site.com/path/to/file.ext?param=val /my.new.host/
https://my.new.host/path/to/file.ext?param=val
Aaron
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