Forum Discussion
Bob_10976
May 22, 2012Nimbostratus
WWW Redirect with URI String
I have a WWW redirect in place that works, however when a user goes to www.domain.com/something they are redirected to just domain.com vs going to domain.com/something.
How can I modify or create a new rule to make it work so they maintain the URI string/path after the redirect happens.
I'm running 10.2.3 and my current rule is below:
when HTTP_REQUEST {
switch "[string tolower [HTTP::host]]" {
"www.domain.com" {
HTTP::respond 301 Location "http://domain.com"
}
}
}
[\code]
Thanks,
Bob
- natheCirrocumulusBob,
- Bob_10976NimbostratusI get an error when I check the syntax:
- Bob_10976NimbostratusThanks Nathan..I see what the problem was now..Just moved my quote over and yes that did the trick..
- natheCirrocumulusBob
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