# Subfolder SSO Login redirection issue

**URL:** https://meta.discourse.org/t/subfolder-sso-login-redirection-issue/110056
**Category:** Support
**Tags:** subfolder
**Created:** [February 25, 2019, 5:44pm UTC](https://meta.discourse.org/t/subfolder-sso-login-redirection-issue/110056 "2019-02-25T17:44:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rohan\_P](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@Rohan\_P](https://meta.discourse.org/u/Rohan_P)
#### Post date: [February 25, 2019, 5:44pm UTC](https://meta.discourse.org/t/subfolder-sso-login-redirection-issue/110056/1 "2019-02-25T17:44:23Z")

</div>

Hi, I have deployed discourse on vm, and configured sso, Also have configured application gateway, we have set a path rule /community for forum, on hitting /community/session/sso the app authorises and redirects back to the main website.  
For example: on hitting [https://mymainwebsite.com/community/session/sso](https://mymainwebsite.com/community/session/sso) i am automatically redirected back to [https://mymainwebsite.com](https://mymainwebsite.com).  
When i check the log it has authorised token but at the end it is redirecting to main site.

 ![48%20PM](https://global.discourse-cdn.com/meta/original/3X/2/3/23510e0b04ccc725888bc981dc341bc3be8d7a43.png)

Could anyone please help me with this issue

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 28, 2022, 12:41am UTC](https://meta.discourse.org/t/subfolder-sso-login-redirection-issue/110056/2 "2022-03-28T00:41:24Z")

</div>


