Forum Discussion
ringoseagull_77
Nimbostratus
Mar 25, 2011irule to remove www. prefix from URIs
Hi,
I'm sure this has been covered but a search brings up a lot of threads using the same words
I need an irule which just strips out the www. from an http request, eg redirect www...
ringoseagull_77
Nimbostratus
Mar 25, 2011Thanks, I found this by searching, it will do the same job by the looks, unless the string to lower segment makes a difference?
when HTTP_REQUEST {
if { ! ([HTTP::host] starts_with "www.") } {
HTTP::redirect http://www.[HTTP::host][HTTP::uri]
}
}
Thanks again for your help
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