Forum Discussion
alinayesina_102
Mar 13, 2009Nimbostratus
Responce URI Masking/Hiding
We would like to consult on the possibility of performing a URL rewrite with the use of an iRule for domain.com. it’s not a good practice for our homepage to show as http://www.domain.com/home/default...
hooleylist
Mar 17, 2009Cirrostratus
If you use this version it will only rewrite the requested URI if the URI is / and the host is www.example.com. It should not have any effect on images or any other non-/ request.
when HTTP_REQUEST {
Check if requested URI is / and requested host is www.example.com
if {[HTTP::uri] eq "/" and [string tolower [HTTP::host]] eq "www.example.com"
Rewrite URI to /home/default.htm
HTTP::uri "/home/default.htm"
}
}
Aaron
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