In Webflow, why am I getting a 404 error and a URL change when trying to redirect "mydomain.com/gardens.htm" to a page called "/contact"? Can I use a page name like "contact" instead of "contact.htm"?

Published on
September 22, 2023

When trying to redirect a URL in Webflow, getting a 404 error and a URL change usually indicates that the redirect is not set up correctly. Here are a few reasons why you may be encountering this issue and some steps to resolve it:

  1. Incorrect setup of the URL redirect:
  • Ensure that you have set up the redirect properly in the Webflow dashboard. To do this, go to your site's settings and select the "Hosting" tab.
  • Under the "URL redirects" section, click on the "+ Add redirect" button.
  • In the "From" field, enter "/gardens.htm" (without the quotes) as this is the URL you want to redirect from.
  • In the "To" field, enter "/contact" (without the quotes) as this is the page you want to redirect to.
  • Make sure to save the changes.
  1. File extension difference:
  • By default, Webflow uses a page naming convention that includes the file extension (e.g., "contact.htm"). However, you can use a page name without a file extension (e.g., "contact").
  • If you want to use a page name like "contact" instead of "contact.htm", ensure that you have set up the redirect accordingly in the Webflow dashboard. Make sure to enter the new page name in the "To" field of the URL redirect setup.
  1. Caching issue or incorrect URL:
  • Clear your browser cache to ensure you are seeing the most recent version of your site.
  • Double-check that you are using the correct URL when testing the redirect.

To summarize, to fix the 404 error and URL change when trying to redirect "mydomain.com/gardens.htm" to a page called "/contact":

  • Verify that the URL redirect is set up correctly in the Webflow dashboard, with "/gardens.htm" in the "From" field and "/contact" (or the desired page name) in the "To" field.
  • Ensure that you are using the correct URL and clear your browser cache if needed.

Additional Resources:

Three additional questions users may search:

  1. How do I set up a URL redirect in Webflow?
  2. Can I remove the file extension from page names in Webflow?
  3. Why am I getting a 404 error when trying to redirect a URL in Webflow?