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
what about this one?
when HTTP_REQUEST {
if { [HTTP::path] equals "/" } {
HTTP::redirect "http://[HTTP::host]/guest/en/home.shtml?[HTTP::query]" }
}
}
- Rory_Hewitt_F5_Apr 17, 2018
Cirrus
You're right. Apologies - I thought I had updated this code to fix that particular buglet. If I can, I'll update it now.
- Rory_Hewitt_F5_Apr 17, 2018
Cirrus
Check out https://devcentral.f5.com/s/articles/cors-implementation, which contains the 'correct' implementation.