Forum Discussion
Joe_Pipitone
Nov 16, 2009Nimbostratus
I stand corrected - the redirects only work in Chrome - not IE or Firefox, is there anything you see wrong?
Should I be using starts_with in every occurence? I know of an equals and contains?
if { [string tolower [HTTP::uri]] starts_with "/lv2010/instructors" } {
HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/speakers/speaker-list.aspx"
}
if { [string tolower [HTTP::uri]] starts_with "/lv2010/hotel" } {
HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/information/hotel-and-travel.aspx"
}
if { [string tolower [HTTP::uri]] starts_with "/lv2010/register" } {
HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/information/registration.aspx"
}
if { [string tolower [HTTP::uri]] starts_with "/lv2010/fax" } {
HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/information/registration.aspx"
}
if { [string tolower [HTTP::uri]] starts_with "/lasvegas10" } {
HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/home.aspx"
}
if { [string tolower [HTTP::uri]] starts_with "/lasvegas2010" } {
HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/home.aspx"
}
if { [string tolower [HTTP::uri]] starts_with "/lv2010/es/register" } {
HTTP::redirect "http://events.ourdomain.org/events/some-executive-page-2010/information/registration.aspx"
}
if { [string tolower [HTTP::uri]] starts_with "/lv2010/es/hotel" } {
HTTP::redirect "http://events.ourdomain.org/events/some-executive-page-2010/information/hotel-and-travel.aspx"
}
if { [string tolower [HTTP::uri]] starts_with "/lv2010/es/qualify" } {
HTTP::redirect "http://events.ourdomain.org/events/some-executive-page-2010/information/qualification.aspx"
}
if { [string tolower [HTTP::uri]] starts_with "/lv2010" } {
HTTP::redirect "http://events.ourdomain.org/events/some-other-page-conference-2010/home.aspx"
}