Forum Discussion
chungyu_16122
Altostratus
Aug 01, 2011How to append to URI
Hi eveyone We have parts of our webite that are french, and when a user has access a http://francais.mcgill.ca, I need to append a /fr to certain sites. I have created this iru...
Chris_Miller
Altostratus
Aug 01, 2011
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "francais.mcgill.ca" } {
if { [string tolower [HTTP::uri]] starts_with "/science" } {
HTTP::uri "/science/fr/[string range [HTTP::uri] 11 end]" }
}
}
That should hopefully work.
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