Replies: 1 comment
-
@rightson1 I am having the same issue and cannot seem to find any documentation on how to actually redirect from a subdomain back to an apex domain |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm trying to properly strip the subdomain and rewrite the URL correctly in my Next.js middleware. The goal is to ensure that when a user enters eventname.mydomain.com, they are redirected to mydomain.com/e/eventname without retaining the subdomain in the URL. However, my current implementation isn't working as expected, and instead of rewriting the URL, it keeps the subdomain, resulting in eventname.mydomain.com/e/eventname. I'm looking for guidance on how to properly handle this redirection.
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions