# Sessão/sso redirecionamento incorreto

**URL:** <https://meta.discourse.org/t/session-sso-wrong-redirect/46103>\
**Category:** Product Support\
**Created:** [21 Junho , 2016 05:58 UTC](https://meta.discourse.org/t/session-sso-wrong-redirect/46103 "2016-06-21T05:58:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)\
**Post date:** [21 Junho , 2016 05:58 UTC](https://meta.discourse.org/t/session-sso-wrong-redirect/46103/1 "2016-06-21T05:58:25Z")

</div>

Hey guys.

I have this weird thing and I’m not sure what to do next. So, I have this set up:

- Discourse behind nginx, because I have a couple of extra sites on the same sever.
- The forum is private, on a subdomain
- The auth is made via [wp sso](https://meta.discourse.org/t/wp-discourse-sso-plugin), on the same server, as a main domain
- When I’m not auth and try to access discourse, it will redirect me to discourse.mysite.comsession/sso.

Obviously, this will fail, there is a slash missing in the URL.

```plaintext
$ curl -I discourse.mysite.com
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Tue, 21 Jun 2016 05:38:23 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://discourse.mysite.com/

$ curl -L discourse.mysite.com
curl: (6) Could not resolve host: discourse.mysite.comsession

```

Inside of wp sso, i had specified the url with a trailing slash, yet no results..

At this point I’m not sure what to try first, because I have no idea when this issue appeared and if this is the result of the fact that i use the same server for multiple sites.

Any ideas?

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/session-sso-wrong-redirect/46103)._
