Forum Discussion
Change or modify the landing page after login
rvenn MyEnvoyAir wrote:Dear F5 and community,
Good day. Would like to ask your expertise on how to change or modify the landing page after login.
The ideal setup is an external user > browses to domain.com > shows a login page (instead of the domain.com page) > after successfull login it will show a correct landing page (domain.com)
For now, when a user logins , it shows a wrong landing page. Even the Home button is redirected to a wrong landing page.
What I notice is the difference of the rewrite code.
Wrong landing page --> https://domain.com/f5-w-687474703a2f2f736d6172742e7367732e6f72672e7361$$/
Correct landing page --> https://domain.com/f5-w-687474703a2f2f7367732d6a65643231373a32303234$$/ar/
Appreciate any advice on this and Thank you in advance.
Here are a few ways you can modify the landing page after login on F5 BIG-IP:
1. Use an iRule to redirect to a different URL after successful authentication. You can check for the presence of a session cookie or other header and do a REDIRECT or HTTP::redirect to send the user to a different landing page.
2. Modify the AAA authentication profile to change the post-authentication action from "Go to URL" to an iRule event or other option. This will allow you to have more control over the landing page flow after login.
3. Use APM webtops and webtop links to specify a custom landing page after login. You can create a webtop link that points to the desired URL.
4. For specific virtual servers, modify the Rewrite profile to rewrite the URL to the desired landing page. Make sure the profile is assigned to the virtual server handling the login POST request.
The key is to override the default post-auth behavior on successful login by using iRules, webtops, or URL rewriting. This will allow you to send the user to the correct landing page after authenticating. Let me know if any part needs more clarification!
Recent Discussions
Related Content
* 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