Forum Discussion
david0512_20548
Oct 09, 2014Nimbostratus
http redirect issue with $ character
Hi All
I have the following redirect setup and it seems to work aprt form when the $ character is inserted into the rule.
when HTTP_REQUEST {
if { [HTTP::host] equals "www.thiswebsite....
- Oct 09, 2014
The $1 is being treated as a variable. Escape the dollar-sign in both locations with a "\" to match "$1":
/t/\$1
afedden_1985
Oct 09, 2014Cirrus
are you just wanting to change the host destination? this might work if you are keeping the URI the same . when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "bigdog.some.domain" } { HTTP::respond 301 Location "http://www.Lildog.com[HTTP::uri]" } }
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