Forum Discussion
slackwaresuppor
Nimbostratus
May 28, 2008stripping data
how would i strip the www. off of www.domain.com??
John_Alam_45640
May 29, 2008Historic F5 Account
Since it is fun we are after, how is this:
when HTTP_REQUEST {
HTTP::redirect "https://www.domain1.com/nsa/+homePage="+[regsub {^www\.} [HTTP::host] ""]
}
If i got all the synthax correct, regsub should remove www. if it finds it, if it does not, it should return [HTTP::host} as is.
John
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