Forum Discussion
- Colin_Walker_12Historic F5 AccountThe command that you're looking for is HTTP::redirect.
when HTTP_REQUEST { if {[HTTP::host] eq "domain.com" } { HTTP::redirect "http://www.domain.com" } }
- mkoushki_127802NimbostratusThanks
- Askar_Sattar_68Historic F5 Accountwell i am implementing your suggestion and i turn on the log,
- Have you logged the value of [HTTP::host]? If you are getting the log statement with match in it, then the host value that is coming is is not "domain.org".
log local0. "Host is [HTTP::host]"
- mkoushki_127802Nimbostratuslog showes that , it is http://www.domain.com but in browser i still can see http://domain.com