How to redirect from the Base URL of the instance to the Service Portal Homepage for users who have not logged in?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2017 04:14 AM
I need to redirect users who are trying to access the base url of the instance, and send them to the Service Portal Homepage. I am using SSO, and this works when the user first access the base URL and gets sent to the homepage as needed. However, once the users goes to SSO sign in, even just visiting the page, every attempt to access the base url while logged out sends the user to the SSO and not the homepage.
So far I have narrowed it down to being a cache problem, however is there a way that can be fixed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2017 04:28 PM
Hi Daniel,
If the page redirection you want happens before login then you need to set up a reverse proxy server to achieve redirection.
If you want they user access the base url to login and after login it redirects to service portal then this is a different topic.
In the second scenario as user login via SSO then the relayState should be changed to Service Portal in the SAML2 installation exits script.
Please clarify which scenario is what you want.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2017 03:11 AM
We need to redirect people before login to the Service Portal. Once there, they should be redirected to the SSO login page if they try to request a catalog item or use the login link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2017 04:38 PM
Hi Daniel,
If you want the page redirection occurs before user login then this is a different topic.
You should set up a reverse proxy server in your network to redirect the base URL to the Service Portal page.
ServiceNow instance or infrastructure is not involved in this case.
Cheers
Henry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2017 08:20 AM
We have a similar issue where if a user doesn't have a role, we redirect them to our self-service portal page. For users who have a role but intentionally navigate to the portal page for some reason, every subsequent attempt to go back to the native UI gets them redirected to the portal page. The only way to stop that behavior is to clear cache (that we know of).