Skip to content

Redirect subdomain to a third-party website #230

Locked Answered by fu-sen
DavidSalomonDev asked this question in Help
Discussion options

You must be logged in to vote

This is probably what you're expecting in vercel.json:

{
  "redirects": [
   { "source": "/(.*)", "destination": "https://blog.davidsalomon.dev/$1", "permanent": true }
  ]
}

When using redirects, ▲Vercel does not provide 301. You can use 308 instead.

The lack of the Domains option is another issue.
You are looking at your account page. Not there: https://vercel.com/account

Did you assign the domain to the project?
If you're doing git push or vercel --prod, you should have created that project.
see the project page. There is View Domains there: https://vercel.com/dashboard/projects

Replies: 0 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Pieparker
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fu-sen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants