Forum Discussion
Fotios_30046
Nimbostratus
Sep 14, 2007Static URI Rewrites
Our website search functionality has gone through some heavy modifications recently and in doing so, the url's have been completely rewritten.
To give you a better understanding of whats going on,...
Fotios_30046
Nimbostratus
Sep 18, 2007Joe,
I don't see anything wrong with my particular configuration.
when HTTP_REQUEST
{
if {[HTTP::path] == "/SearchCombined.asp"}
{
set CategoryID1 [findstr [HTTP::query] "category=" 9 "&"]
log local0. "set command = >$CategoryID1<"
if {$CategoryID1 != ""}
{
set CategoryID2 [findclass $CategoryID1 $::CategoryIDs " "]
log local0. "set command = >$CategoryID2<"
if {$CategoryID2 != ""}
{
set qstring [string map [list $CategoryID1 $CategoryID2] $qstring]
log local0. "set command = >$qstring<"
}
}
HTTP::respond 301 Location "http://[HTTP::host]/common/search/SearchResult.asp?$qstring"
HTTP::respond 301 Location "http://[HTTP::host]/"
}
}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