Forum Discussion
1000blocks
Nimbostratus
Mar 07, 2017Applying lowercase iRule to HTTPS virtual server?
Hi,
For SEO reasons, I need to apply force all HTTP requests to my site to be lowercase.
The Big-IP configuration for the site is a HTTP virtual server and a HTTPS virtual server (with a cl...
Hectorm
Nimbostratus
Mar 09, 2017here is another Irule to do this
when HTTP_REQUEST {
# pool_group1 is the pool name for this virtual server
set Vuri [ string tolower [HTTP::uri]]
set Vheader [string tolower [HTTP::host]]
set Poolmember1 [active_members pool_group1]
set Default_site www.mysitename.com
switch $Vheader {
www.mysitename.com {
if { [HTTP::uri] ne $Vuri } {
[HTTP::uri] $Vuri
}
else { pool pool_group1 }
}
default { HTTP::redirect "https://$Default_site$Vuri"}
}
}
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
