Is it possible to host the marketing pages on www.example.com/legal, www.example.com/privacy and the web app on www.example.com/dashboard, www.example.com/create while moving the React app from app.example.com to example.com for SEO reasons?

Published on
September 22, 2023

Yes, it is possible to host the marketing pages on www.example.com/legal, www.example.com/privacy and the web app on www.example.com/dashboard, www.example.com/create while moving the React app from app.example.com to example.com for SEO reasons. Here are the steps to achieve this:

  1. Set up the marketing pages:
  • Create a new page in Webflow for each marketing page you want to host on www.example.com/legal or www.example.com/privacy.
  • Design and customize these pages as per your requirements.
  • Publish these pages to your Webflow hosting.
  1. Set up the web app:
  1. Set up the React app:
  • Move the React app from app.example.com to example.com.
  • Ensure that all necessary files and dependencies are included within the new website structure.
  • Modify the routing logic of the React app to work with the new URL structure.
  • Test the React app thoroughly to ensure everything is functioning correctly.
  1. Update DNS settings:
  • Update your DNS settings to point the www.example.com subdomain and example.com domain to your Webflow hosting.
  • Create appropriate DNS records (CNAME or A records) for both the www and non-www versions of the subdomain and domain.
  • Allow the DNS changes to propagate, which may take some time.
  1. Configure Webflow hosting:
  • In the Webflow project settings, configure the custom domains www.example.com and example.com to ensure they are properly connected to your Webflow hosting.
  • Set up redirects or rewrite rules if necessary to redirect the old URLs of the React app to the new URLs on example.com.

By following these steps, you will be able to host the marketing pages on www.example.com/legal, www.example.com/privacy, and the web app on www.example.com/dashboard, www.example.com/create, while moving the React app from app.example.com to example.com for SEO reasons. This setup ensures that all pages are hosted on the same domain, which can improve SEO by consolidating the authority and relevance of your website. Additionally, it allows for better tracking and analytics as all traffic will be under a single domain.

Additional Questions:

  1. How do I set up custom domains in Webflow?
  2. Can I use Webflow to host a React app?
  3. What are some best practices for SEO when moving a website to a new domain?