Forum Discussion
tobs_93015
Feb 19, 2009Nimbostratus
Hide/Mask URL using iRule
Hi,
I would like to mask my home page URL path via an iRule condition because currently when a user navigate to my domain (http://www.mysite.com), it is redirected to an MCMS server ba...
AndrewO_4840
Feb 19, 2009Nimbostratus
If you're only worried about that URI then a simple rule like this would suffice:
when HTTP_REQUEST {
if [HTTP::uri == "/"] {
HTTP::uri "/home/default.htm"
}
}
This simply checks the incoming URI. If it is "/" (i.e. top page of your site) then it silently rewrites the request to /home/default.htm" before passing it onto the server.
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