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...
Michael_Yates
May 23, 2011Nimbostratus
Yet another way to do it üôÇ
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] ends_with "com" } {
set host [string map -nocase {com org} [HTTP::host]]
HTTP::redirect "http://$host[HTTP::uri]"
}
}
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