Vercel Custom Domain
Unanswered
Sun bear posted this in #help-forum
Sun bearOP
Hello, I created a demo website and deployed to Vercel.
My current domain example.com is my home page. I would like to set example.com/demo as my demo website. However, when I go to add example.com/demo it is not valid. I can only add example.com without any endpoints. How can I add the /demo as the redirect?
My current domain example.com is my home page. I would like to set example.com/demo as my demo website. However, when I go to add example.com/demo it is not valid. I can only add example.com without any endpoints. How can I add the /demo as the redirect?
1 Reply
@Sun bear Hello, I created a demo website and deployed to Vercel.
My current domain *example.com* is my home page. I would like to set *example.com/demo* as my demo website. However, when I go to add *example.com/demo* it is not valid. I can only add *example.com* without any endpoints. How can I add the */demo* as the redirect?
use [
redirects](https://vercel.com/docs/projects/project-configuration#redirects) or [rewrites](https://vercel.com/docs/projects/project-configuration#rewrites) in the vercel.json of the example.com project to configure /demo to be redirected/rewritten to, say, demo.example.com where you host the demo.