Forum Discussion
nathe
Feb 13, 2013Cirrocumulus
muzammil,
That post didn't quite come out as expected. Here are my two options:
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/cc_page" -
"/" { drop }
}
}
This would inherently allow test_page.
Or something friendlier perhaps:
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/cc_page" -
"/" { HTTP::redirect "http://[HTTP::host]/test_page" }
}
}
N