Forum Discussion
Francisco_Arach
Nimbostratus
Feb 06, 2012URI Rewrite
Basically what i am trying to do is to implement the following URL
rewrite rules to avoid redirects that currently happen on the site, so requests going to the specified uri, go to specific URL on th...
nitass
Employee
Feb 06, 2012it looks fine to me. by the way, don't you want to use switch instead of if/elseif?
e.g.
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/" -
"/inspiration" -
"/inspiration/" {
HTTP::uri "/inspiration/default.aspx"
}
"/creative" -
"/creative/" {
HTTP::uri "/crative/default.aspx"
}
"/intelligence" -
"/intelligence/" {
HTTP::uri "/intelligence/default.aspx"
}
"/talent" -
"/talent/" {
HTTP::uri "/talent/default.aspx"
}
"/communities" -
"/communities/" {
HTTP::uri "/communities/default.aspx"
}
}
}
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