Forum Discussion
murali_125469
Nimbostratus
Oct 22, 2013HTTP rewrite with uri modification
Hello everyone !!
I am fairly new to irules and below is my client requirement.
we have multiple websites like portal.ourcompany.com , sites.ourcompany.com , extranet.ourcompany.com etc now as the ...
murali_125469
Nimbostratus
Oct 23, 2013thank you very much so my code should be as below , i will try tomorrow and let you know. also if i want to implement new VIP for old sites with the same pool member do i need to map the vip to the dns and reverse proxy ? or shall i go for SAN certificate
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] contains ".csmcosmos.com" } {
set hostname [HTTP::host]
HTTP::uri "/home.html?u=[HTTP::host][HTTP::uri]"
HTTP::header replace Host "aredirector.csmcosmos.com"
} }
when HTTP_RESPONSE {
if { [info exists hostname] } {
HTTP::header replace Host $hostname
}}
- murali_125469Oct 24, 2013
Nimbostratus
hi kevin the above code is not working i got page can't be displayed , but when i add pool to the code and while http response mentioned location as original i am getting the redirection message but not the link to the new website :(
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