How can I set up a redirect in Webflow for a new page with a custom domain that contains characters not allowed in the path?

Published on
September 22, 2023

To set up a redirect in Webflow for a new page with a custom domain that contains characters not allowed in the path, you can follow these steps:

  1. Create a new page: First, create a new page in your Webflow project that you want to redirect to. Make sure to give it a simple and URL-friendly slug without any special characters that are not allowed in the path.

  2. Set up the custom domain: If you haven't already, set up your custom domain in your Webflow project. This typically involves adding a CNAME or A record in your domain registrar's DNS settings to point to Webflow's servers.

  3. Create a redirect page: In your Webflow project, create a new page that will act as a redirect page. This page will have a slug that contains the characters you want to use in the URL but are not allowed in the path.

  4. Add custom code: Open the settings for the redirect page and click on the "Custom Code" tab. In the <head> section, paste the following JavaScript code:

    ```html

    ```

    Replace 'http://www.yourdomain.com/new-page' with the actual URL of the page you want to redirect to.

  5. Publish your site: After adding the custom code, publish your site to make the redirect page live.

  6. Test the redirect: Test the redirect by entering the custom domain with the characters not allowed in the path. The redirection should take place and the user will be automatically redirected to the new page with the desired URL.

Please note that the redirect will only work if the custom domain is properly set up and pointing to your Webflow project.

By following these steps, you can set up a redirect in Webflow for a new page with a custom domain that contains characters not allowed in the path.

Additional questions:

  1. How do I set up a custom domain in Webflow?
  2. Can I create 301 redirects in Webflow?
  3. What are the best practices for optimizing SEO in Webflow?