chungyu_16122
Aug 01, 2011Altostratus
How 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 irule but can not get it to work properly.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "francais.mcgill.ca" \
and [string tolower [HTTP::uri]] equals "science"} {
HTTP::uri "[HTTP:uri]/science/fr"
}
}
I have seen similar post regarding appending URI and based the rule off them but the 4th line is not accepted.
Thanks
Chung