Does Webflow automatically redirect a non-secure site (http) to a secure site (https), or is there a way to achieve this using Regex in the redirect page section?

Published on
September 22, 2023

Webflow does automatically redirect a non-secure site (http) to a secure site (https). This means that if someone enters "http://yourdomain.com" in their browser, Webflow will automatically redirect them to "https://yourdomain.com".

To achieve this redirection, Webflow uses a server-side 301 redirect. A 301 redirect is a permanent redirect that informs search engines and visitors that the page has permanently moved to a new location. This is important for SEO purposes, as search engines can transfer the ranking and indexing value of the old page to the new one.

It is also possible to set up a redirect using Regex in the redirect page section. This allows for more advanced redirect configurations. For example, you can redirect specific pages or directories to different locations.

To achieve this using Regex in the redirect page section, follow these steps:

  1. Go to your project settings in the Webflow Dashboard.
  2. Click on the "Hosting" tab.
  3. Scroll down to the "Redirects" section.
  4. Click on the "Add a redirect" button.
  5. In the "From" field, enter the URL pattern you want to redirect from. For example, if you want to redirect all pages in a specific directory, you can enter "/blog/.*" to redirect any page starting with "/blog/".
  6. In the "To" field, enter the URL pattern you want to redirect to. This can be the full URL of the new location or a relative path.
  7. Choose the redirect type: 301 (permanent) or 302 (temporary).
  8. Click on the "Save" button to apply the redirect.

By using Regex in the redirect page section, you can have more fine-grained control over your redirects and handle specific cases that the automatic redirection may not cover.

In terms of SEO, it is important to ensure that your website uses HTTPS to provide a secure browsing experience for your visitors and to comply with search engine requirements. Using Webflow's automatic redirection or setting up redirects with Regex will help achieve this and maintain the SEO value of your website.