Forum Discussion
kai_wang_48807
Jan 30, 2007Nimbostratus
Help! how to Change request URL without Redirect
Hope result:
When Client access URL is http://abc.com/abc, iRule will chang it to http://abc.com/123/bac/... and send to server.
Notice: couldn't use http:redirect uri, since client couldn't support redirect.
Please give me some direction!
Thanks.
- You can modify the URI with the HTTP::uri command. This should be pretty close to what you want.
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/abc" } { HTTP::uri [string map -nocase {"/abc" "/123/bac"} [HTTP::uri]] } }
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/abc" } { HTTP::uri "/123/bac[findstr [string tolower [HTTP::uri]] "/abc" 4]" } }
- kai_wang_48807NimbostratusThanks a lot!
- Jon_Strabala_46NimbostratusCan you modify the port (without Redirect) from say 8080 to 80 if so how
- hooleylistCirrostratusHi Jon,
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