Forum Discussion
AndyCooney_1337
Nimbostratus
May 22, 2011rewrite .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
Nimbostratus
May 23, 2011Yet 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]"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
