Forum Discussion
Angela_R_33237
Nimbostratus
Oct 19, 2005Simple iRule help (I hope) -- non-www to www.
How do I set up an iRule to redirect non-www requests to the www of that domain.
Example:
domain1.com --> www.domain1.com
domain2.com --> www.domain2.com
We ha...
Angela_R_33237
Nimbostratus
Oct 20, 2005Wonderful -- thanks! This is what I ended up using:
when HTTP_REQUEST { if { ([HTTP::host] starts_with "www.") } {
pool pool_name } else { HTTP::redirect "http://www.[HTTP::host][HTTP::uri]" } }
Sorry, it's not very pretty. But it works -- thanks!
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