Forum Discussion
AndyCooney_1337
May 22, 2011Nimbostratus
rewrite .com to .org for any domain
We host many of our sites as .org but still register the .com and .net domains. We'd like to have a single VIP that takes any "requested_domain.com" and rewrites it to "requested_domain.org". Currentl...
Ed_Hammond_2611
May 22, 2011Nimbostratus
Use regsub or split/join to manipulate the string.
set newDomain [regsub -nocase -- {(com|net)\.*$} [HTTP::host] {org}]
HTTP::redirect "$newDomain[HTTP::uri]"
Or something to that effect ;-)
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