Forum Discussion
mj16othman
Dec 12, 2022Altostratus
Hiding URL
Guys i need help I have users when they type in lets say https://oli.test.com the client browser displays https://oli.test.com/mortgage/default.aspx?clientid=1021. I basically want to hi...
Kai_Wilke
Dec 13, 2022MVP
Hi mj16othman,
to always stick the browser address bar to https://oli.test.com/ while the client is visiting your site. You would need to send the client an outer HTML page which opens an inner iFrame. The outer HTML basically stays for the entire browsing sessions and emulates an inner browser window. If the user clicks on a link, the iFrame will change the inner content as usuall...
You may either deploy such a HTML page on your webserver as default document or even as 404 response, or use the iRule below:
when HTTP_REQUEST {
if { [HTTP::path] eq "/" } then {
set html_page {
<html>
<body>
<iframe src="/mortgage/default.aspx?clientid=1021" style="border: 0; width: 100%; height: 100%" name="Your browser does not support iframes">
</html>
</body>}
HTTP::respond 200 content $html_page "Content-Type" "text/html"
}
}
Cheers, Kai
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