Forum Discussion
CraigD1_147916
Cirrus
Nov 13, 2015Please assist with redirect to prepend "www."
Hi, I am hoping someone can review my irule to determine why I get no redirection from it when.
I am attempting to prepend www. in any case where it does not already exist.
Fiddler shows 5...
CraigD1_147916
Cirrus
Nov 13, 2015Looks like it works without the OR. Any assistance on the best way to incorporate that is appreciated.
when HTTP_REQUEST {
if { !([HTTP::host] starts_with "www.") } {
HTTP::redirect http://www.[HTTP::host][HTTP::uri] } }
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