# WP Discourse login page path

**URL:** https://meta.discourse.org/t/wp-discourse-login-page-path/103780
**Category:** WordPress
**Created:** [December 8, 2018, 7:59am UTC](https://meta.discourse.org/t/wp-discourse-login-page-path/103780 "2018-12-08T07:59:32Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [December 8, 2018, 5:42pm UTC](https://meta.discourse.org/t/wp-discourse-login-page-path/103780/2 "2018-12-08T17:42:55Z")

</div>

> [@WP-Discourse Force SSO?](https://meta.discourse.org/t/wp-discourse-force-sso/91932/10):
>
> So what I want is the following:
> 
> If anyone types [discourse.mysite.com](http://discourse.mysite.com) or get to my discourse through a link they get presented with a customized login page.
> 
> At the same time if anyone types [mysite.com/wp-admin](http://mysite.com/wp-admin) it takes them to the normal Wordpress Admin login.

On the [WP Discourse](https://github.com/discourse/wp-discourse) SSO Provider settings page there is a ‘Path to your Login Page’ setting. It sets the login path that is used for SSO. Try entering the path to the login page that you want users to be redirected to when they login through `discourse.mysite.com`. The setting takes a path, not a full URL. It should look something like this: `/my-account`.

This should allow users who visit `/mysite.com/wp-admin` to be redirected to `/wp-login.php`, and users who initiate login visiting your forum to be redirected to your custom login page.

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-login-page-path/103780)._
