# Hosting react-app with routing for login on auth0

**URL:** <https://community.auth0.com/t/hosting-react-app-with-routing-for-login-on-auth0/62226>\
**Category:** Get Help\
**Created:** [May 5, 2021, 2:33am UTC](https://community.auth0.com/t/hosting-react-app-with-routing-for-login-on-auth0/62226 "2021-05-05T02:33:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rburrell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rburrell/32/14599_2.png) [@rburrell](https://community.auth0.com/u/rburrell)\
**Post date:** [May 5, 2021, 2:33am UTC](https://community.auth0.com/t/hosting-react-app-with-routing-for-login-on-auth0/62226/1 "2021-05-05T02:33:08Z")

</div>

I am using auth0 for login and signup. However, my use-case is a little different from the usual. Here’s the solution I’m searching:

I have a custom domain setup on auth0 and wants to be able to navigate to a certain path on the custom domain and get certain views. For example, let’s say I navigate to [https://account](https://account).{MY\_CUSTOM\_DOMAIN}/login then I would get the login page and if I navigate to [https://account](https://account).{MY\_CUSTOM\_DOMAIN}/sign-up then I would see the signup page.

Anyone have any idea how this can be achieved?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 5, 2021, 11:45am UTC](https://community.auth0.com/t/hosting-react-app-with-routing-for-login-on-auth0/62226/3 "2021-05-05T11:45:49Z")

</div>

Hi @rburrell,

Welcome to the Community!

According to the [docs](https://auth0.com/docs/custom-domains), you can use a Custom Domain to use the URL `login.YOUR_DOMAIN.com` for Universal Login instead of `YOUR_DOMAIN.auth0.com`, but unfortunately, Universal Login won’t be able to support the URLs you’ve described.

In order to implement those routes, you’d likely have to use an embedded login:

> **[Embedded Login](https://auth0.com/docs/authenticate/login/embedded-login)**
>
> Describes Auth0 Embedded Login used to log users directly into your application, transmitting credentials to the Auth0 server.

Here is more information about configuring features for custom domains:

> **[Configure Features to Use Custom Domains](https://auth0.com/docs/customize/custom-domains/configure-features-to-use-custom-domains)**
>
> Learn how to configure a custom domain for Auth0 authentication features.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 20, 2021, 11:46am UTC](https://community.auth0.com/t/hosting-react-app-with-routing-for-login-on-auth0/62226/4 "2021-05-20T11:46:15Z")

</div>

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