Forum Discussion
TommyQuality_26
Nimbostratus
Jul 06, 2016irule to append www to each page
Hi,
I have a website that is available as http://www.webpage.com or http://webpage.com. I need to have all pages resolve back to the www version.
so if a visitor was to go to http://webpag...
Yann_Desmarest
Cirrus
Jul 06, 2016Hi,
You can use an irule to detect if www is present and append it if not present :
when HTTP_REQUEST {
if { !([HTTP::host] contains "www.") } {
HTTP::host "www.[HTTP::host]"
}
}
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