Forum Discussion
- maher_69299NimbostratusI need a similar IRULE like the one posted by Aaron "for a different issue" but to redirect the IP address instead of the "www.app.mydomain.com"
- hooleylistCirrostratusHi Maher,
when HTTP_REQUEST { Check if host header value is not www.example.com if {not ([string tolower [HTTP::host]] eq "www.example.com")}{ Send a 301 redirect HTTP::respond 301 Location "http://www.example.com/" } }
- maher_69299NimbostratusI think I got it .. I just changed the name after the " " to an IP address and it works
- maher_69299NimbostratusThanks Aaron. I guess I replied before seeing your post. I used your other Irule and it works. I will try the last Irule you posted since it seems more general than specifying an IP address. Thanks again