Forum Discussion
mkoushki_127802
Nimbostratus
Jan 03, 2006redirect http://domain.com to http://www.domain.com
Hello
I am looking for simple statment for iRule in v9.x to redirect http://domain.com to http://www.domain.com
please advice
thanks
Askar_Sattar_68
Jan 06, 2006Historic F5 Account
well i am implementing your suggestion and i turn on the log,
i have this in my iRule :
when HTTP_REQUEST {
if {[HTTP::host] eq "domain.org" } {
HTTP::redirect "http://www.domain.org"
log local0. "teri.org"
}
else {
pool HTTP_TS
log local0. "match"
}
}
and resault is :
Jan 6 15:14:00 tmm tmm[640]: Rule www : match
Jan 6 15:14:00 tmm tmm[640]: Rule www : match
Jan 6 15:14:00 tmm tmm[640]: Rule www : match
so it seems, it by passed the first part of is statment
do you have any idea why?
thanks
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
