# Dev custom domain login url redirecting to prod login url

**URL:** <https://community.auth0.com/t/dev-custom-domain-login-url-redirecting-to-prod-login-url/57778>\
**Category:** Get Help\
**Tags:** hosted-login-page, custom-domain, login\
**Created:** [February 12, 2021, 12:54pm UTC](https://community.auth0.com/t/dev-custom-domain-login-url-redirecting-to-prod-login-url/57778 "2021-02-12T12:54:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh.ramesh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vignesh.ramesh/32/12799_2.png) [@vignesh.ramesh](https://community.auth0.com/u/vignesh.ramesh)\
**Post date:** [February 12, 2021, 12:54pm UTC](https://community.auth0.com/t/dev-custom-domain-login-url-redirecting-to-prod-login-url/57778/1 "2021-02-12T12:54:13Z")

</div>

Hello!!!

In our project we are using two tenants for dev and prod environment. I have created a custom domain for both the dev and prod. The issue which I am facing is

When I hit the actual page url of both dev and prod it redirects to proper login page for example “[dev.auth0.com](http://dev.auth0.com)” leads to “[login.dev.auth0.com](http://login.dev.auth0.com)” and also “[prod.auth0.com](http://prod.auth0.com)” leads to “[login.prod.auth0.com](http://login.prod.auth0.com)”

but when I try to hit login url of dev directly “[login.dev.auth0.com](http://login.dev.auth0.com)” it leads me to “[login.prod.auth0.com](http://login.prod.auth0.com)” but this issue is not happening with prod tenant only with dev tenant I am facing this issue means when I hit the url “[login.prod.auth0.com](http://login.prod.auth0.com)” it redirects me to the same url “[login.prod.auth0.com](http://login.prod.auth0.com)”

Can you please help me with this?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [February 22, 2021, 9:36pm UTC](https://community.auth0.com/t/dev-custom-domain-login-url-redirecting-to-prod-login-url/57778/3 "2021-02-22T21:36:52Z")

</div>

Hi @vignesh.ramesh ,

Can you please DM me your tenant names so I can take a look at your configuration?

---

<div class="post-metadata">

**Author:** ![vignesh.ramesh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vignesh.ramesh/32/12799_2.png) [@vignesh.ramesh](https://community.auth0.com/u/vignesh.ramesh)\
**Post date:** [February 23, 2021, 5:16pm UTC](https://community.auth0.com/t/dev-custom-domain-login-url-redirecting-to-prod-login-url/57778/4 "2021-02-23T17:16:17Z")

</div>

Hi @dan.woda ,

I have sent my tenant details in DM. Let me know if any further details required from my end.

Thanks,  
Vignesh Ramesh

---

<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:** [April 27, 2021, 9:08pm UTC](https://community.auth0.com/t/dev-custom-domain-login-url-redirecting-to-prod-login-url/57778/5 "2021-04-27T21:08:37Z")

</div>

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