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...
tobs_93015
Feb 23, 2009Nimbostratus
Hi andrewO
Thanks for your reply, you said that the rule you stated will check if the URL entered starts at "/" it will silently rewrite it to "/home/default.html", what do you mean by "silently rewrite it to /home/default.html"?
Will the address bar show only my domain (http://www.mysite.com)? Kindly confirm, thanks!
- Tosin_OmojolaJan 13, 2017Altostratus
If I may clarify what AndrewO meant in his reply, he means that the irule would check if the uri IS ( not that it starts with). An irule that checks if the uri STARTS WITH, looks like below:
when HTTP_REQUEST { if [HTTP::uri starts_with "/"] { HTTP::uri "/home/default.htm" } }
but AndrewO actually meant == or eq ( both of which means equal to ).
Now, by "silently rewrites" it means the uri "/" would be replaced with "/home/default.htm" and, yes, that is what your browser will display in its address bar, that is, (http://www.mysite.com/home/default.htm)
Cheers
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