# Wildcards not working in Callback Urls

**URL:** <https://community.auth0.com/t/wildcards-not-working-in-callback-urls/119566>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [October 27, 2023, 2:42pm UTC](https://community.auth0.com/t/wildcards-not-working-in-callback-urls/119566 "2023-10-27T14:42:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave.natalie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dave.natalie/32/60163_2.png) [@dave.natalie](https://community.auth0.com/u/dave.natalie)\
**Post date:** [October 27, 2023, 2:42pm UTC](https://community.auth0.com/t/wildcards-not-working-in-callback-urls/119566/1 "2023-10-27T14:42:26Z")

</div>

I am attempting to use a wildcard in a callback url to handle our different environments, but everytime I try to login in, I get a “Callback URL mismatch” error.

The docs on [this page](https://auth0.com/docs/get-started/applications/application-settings) clearly state that wildcards are allowed.

My two urls look like this.

- `https://myapp.dev.acme.com`
- `https://myapp.staging.acme.com`

I am trying to present both with a wildcard like this.

`https://myapp.*.acme.com`

It also doesn’t work when the full subdomain is a wildcard.

`https://*.acme.com`

---

<div class="post-metadata">

**Author:** ![gparascandolo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gparascandolo/32/38788_2.png) [@gparascandolo](https://community.auth0.com/u/gparascandolo)\
**Post date:** [October 27, 2023, 3:46pm UTC](https://community.auth0.com/t/wildcards-not-working-in-callback-urls/119566/2 "2023-10-27T15:46:02Z")

</div>

Hey @dave.natalie 👋

The doc on [this page](https://auth0.com/docs/get-started/applications/wildcards-for-subdomains#wildcard-url-placeholders) goes a bit further about the rules of using wildcards in subdomains for Callback URLs

In your case, the Callback URLs are not working with the initial rule you set because:

> - The wildcard **must** be located in the subdomain furthest from the root domain. `https://sub.*.example.com` will not work.

And when you tried updating and making the full subdomain a wildcard

> - A URL with a valid wildcard **will not** match a URL more than one subdomain level in place of the wildcard.  
> `https://*.example.com` will not work with `https://sub1.sub2.example.com`.

---

<div class="post-metadata">

**Author:** ![dave.natalie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dave.natalie/32/60163_2.png) [@dave.natalie](https://community.auth0.com/u/dave.natalie)\
**Post date:** [October 30, 2023, 1:10pm UTC](https://community.auth0.com/t/wildcards-not-working-in-callback-urls/119566/3 "2023-10-30T13:10:27Z")

</div>

You’re totally right, I should have read the docs more carefully.

---

<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:** [March 19, 2025, 7:35pm UTC](https://community.auth0.com/t/wildcards-not-working-in-callback-urls/119566/4 "2025-03-19T19:35:07Z")

</div>

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