Forum Discussion
Scott_82504
Nov 19, 2008Nimbostratus
Ignore the post above. I have it up and running once again 90 percent. thanks
Here are my issue
Goes to this site This is not working
www2.tyco-training.com
Redirect to
http://lms2.tyco-training.com/knav/nav?BU=10003010
I need to make sure everything pass such as graphics. Do I need that forward list ? or better way to do it
For a graphic a url could be
http://lms2.tyco-training.com/knav/TKMStyleSheet/DSC_Customers/images/tyco_bgimage.jpg ( if I dont have the forward list (could become hugh) I will run into issue it would send it to the default page)
Here current irule
when RULE_INIT {
set ::ForwardList [list / .html .htm .asp .pl .jpg .css .jsp .gif]
}
when HTTP_REQUEST {
if { ([string tolower [HTTP::uri]] starts_with "/knav/nav") or
([string tolower [HTTP::uri]] starts_with "/") or
([matchclass [HTTP::path] ends_with $::ForwardList]) } {
return
} else {
switch -glob [string tolower [HTTP::uri]] {
"/dsc*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15002958" }
"/kantech*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15002735" }
"/acvs_catalog*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?cmd=catalog&BU=15004409"}
"/acvs*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15004408"}
"/mac*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15005009"}
"/tycosafetyproducts-fire-europe*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15005089"}
"/scansource*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15004826"}
"/simplexmear*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15004867"}
"/te*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15004768"}
"/physicalsecurity*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15004506"}
"/swh*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15002734"}
"/tfbp*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15004445"}
"/scott*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15002988"}
"/bentel*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15002959"}
"/surgard*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15002959"}
"/amerdyn*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15002733"}
"/cemsys*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15002736"}
"/adtcontractors*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=15005329"}
"/*"
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=10003010"}
default
{ HTTP::redirect "http://lms2.tyco-training.com/knav/nav?BU=10003010" }
}
}
}