Link subdomain to a folder of root IP

Good evening everyone. I need to connect a subdomain to a specific folder in the main domain space; how can I do?

Welcome to the Cloudflare Community. :logodrop:

How you do it will depend on what you want to happen. You could simply set the desired folder as the document root for the name-based virtual host for that subdomain. This will serve the content in that folder when visiting the subdomain in a browser.

You could configure a redirect rule for that hostname and when people visit that subdomain they will be redirected to the specific folder at the other site. This method will show the the address of the main domain once the redirect completes.

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