Can I point a subdomain to a subdirectory? (static website)

I have a static website hosted on Render with my own custom domain.

Currently, I have set up CNAME records and Render settings so that:
mysite.com points to mysite.onrender.com

Now, is there a way I can point a subdomain to a subdirectory of my website?
For example:
example.mysite.com points to mysite.com/example

Thanks for the help!

Hi,

Redirecting a subdomain to a path wouldn’t be possible with a Render Static Site.

You could maybe spin up a Web Service that is configured on that subdomain, and code it to perform the redirect.

1 Like

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