# User auth with website at root and Discourse in subfolder

**URL:** https://meta.discourse.org/t/user-auth-with-website-at-root-and-discourse-in-subfolder/101823
**Category:** Support
**Created:** [November 12, 2018, 10:06am UTC](https://meta.discourse.org/t/user-auth-with-website-at-root-and-discourse-in-subfolder/101823 "2018-11-12T10:06:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![polinoklo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/polinoklo/32/124533_2.png) [@polinoklo](https://meta.discourse.org/u/polinoklo)
#### Post date: [November 12, 2018, 10:06am UTC](https://meta.discourse.org/t/user-auth-with-website-at-root-and-discourse-in-subfolder/101823/1 "2018-11-12T10:06:02Z")

</div>

Hello brothers & sisters! 👻  
I have «[website.com](http://website.com)» on php and mysql with active users.

Now I installed Discourse to directory [website.com/forum/](http://website.com/forum/) (PostgreSQL/Ruby)

I whant make «Sign up» / «Login» ONLY from [website.com](http://website.com) (php/mysql), and than user automatically «Sign up» / «Login» in Discourse ([website.com/forum/](http://website.com/forum/))

How I can do it?🙊

Noob question, sorry!🤓

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 12, 2018, 10:40am UTC](https://meta.discourse.org/t/user-auth-with-website-at-root-and-discourse-in-subfolder/101823/2 "2018-11-12T10:40:32Z")

</div>

What you’re looking for is called SSO

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/official-single-sign-on-for-discourse-sso/13045):
>
> [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) is a core Discourse feature that allows you to configure “Single Sign-On (SSO)” to completely outsource all user registration and login from Discourse to another site. Offered to our [pro, business and enterprise hosting customers](https://discourse.org/pricing). information_source (Feb 2021) ‘[Discourse SSO](https://meta.discourse.org/t/13045?silent=true)’ is now ‘[DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)’. If you are running an old version of Discourse, the settings below will be named sso\_... rather than discourse\_connect\_... The Problem Many sites wishing to integrate wit…

---

<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: [December 12, 2018, 10:40am UTC](https://meta.discourse.org/t/user-auth-with-website-at-root-and-discourse-in-subfolder/101823/3 "2018-12-12T10:40:44Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
