To host two Webflow sites on the same domain with the second site in a subfolder, you can follow these steps:
1. Set up the first Webflow site: Begin by creating and publishing your first Webflow site as usual. This will be the main site or the root domain.
2. Set up the second Webflow site: Next, design and develop your second Webflow site using a different theme or template. Once it's ready, export the code from Webflow.
3. Create a subfolder: Log in to your hosting provider's dashboard or cPanel and create a subfolder where you want to host your second site. The subfolder's name can be anything you like (e.g., "subsite" or "secondsite").
4. Upload the exported code: Use an FTP client or your hosting provider's file manager to upload the exported code of your second Webflow site into the subfolder you created in the previous step.
5. Set up redirects: For the second site to function correctly, you need to set up redirects. Specifically, you need to redirect requests for your subfolder (e.g., "example.com/subsite") to the index.html file within that subfolder. You can usually do this using your hosting provider's dashboard or by editing the .htaccess file in the root directory. Consult your hosting provider's documentation for precise details on how to set up redirects.
6. Customize DNS settings: To ensure a smooth experience for visitors, you should update your DNS settings to point the subdomain (e.g., "subsite.example.com") or the subfolder (e.g., "example.com/subsite") to your second Webflow site. This step may vary depending on your domain registrar or DNS provider, but generally involves creating a CNAME or A record.
7. Test and finalize: Once the redirects and DNS settings are in place, test both sites thoroughly to ensure they function correctly. Be sure to check links, forms, and any dynamic functionality.
By following these steps, you'll be able to host two Webflow sites on the same domain, with the second site residing in a subfolder and using a different theme or template. Remember to consult your hosting provider's documentation or support if you encounter any specific issues during the process.