Forum Discussion
wyuen_99269
Altostratus
Nov 07, 2013IRULE - rewrite
I would like find out how to write an Irule that will do the following:
I have a domain header "fake.ca" and redirect to fake1.ca/english but want to kept fake.ca/english in client browser. Another question, how would I write an Irule to verify a URL.
5 Replies
- IheartF5_45022
Nacreous
This will work;-
if {[HTTP:host] eq "fake.ca"} { HTTP::header replace Host "fake1.ca" } if {[HTTP::path] eq "/"} { HTTP::uri "/english" }Verify a URL how?
- wyuen_99269
Altostratus
I would also like to find out how to verify the path contain nothing
- IheartF5_45022
Nacreous
A path always starts with a "/" even when they not entered anything, so the following checks for empty path;- if {[HTTP::path] eq "/"} { }
- wyuen_99269
Altostratus
I would also like to find out how to verify the path contain nothing - wyuen_99269
Altostratus
In the browser they only see a domain they have enter but in the back it would redirect under to other place.
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