Forum Discussion
Mouene_240365
Nimbostratus
Jan 21, 2017URL rewriting
Hi,
I am redirecting a request using iRule from inside my network to the Internet , in the iRule I am using public ip address of my public server , the url appear to all users like the following:
/Ho...
IheartF5_45022
Nacreous
Jan 21, 2017This might be what you need (the requirements weren't very clear);-
when HTTP_REQUEST {
if {[HTTP::path] eq "/"} {
HTTP::respond 301 Location "http://[HTTP::host]/HomePage/index.html"
return
}
}
IheartF5_45022
Nacreous
Jan 21, 2017Is this what you need? Sorry still unclear on requirement.....
when HTTP_REQUEST {
if {!([HTTP::Host] eq "anyname.com")} {
HTTP::respond 301 Location "http://anyname.com/HomePage/index.html"
return
}
}
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