A redirect is a "change of address", in which a webserver tells the browser that the content has been moved somewhere else either permanently or temporarily. A web browser then typically re-issues the request, to the new URL.
In Webflow, redirections generally occur in one of 3 cases;
http:
to https:
When a request comes into a Webflow-hosted site, Webflow performs a series of checks and corrections in the form of 301 redirects.
http:
protocol, Webflow redirects it to the same URL using the https:
protocol.For example, let's assume we have a Webflow-hosted site which is SSL-enabled, and and has two domains assigned -olddomain.com
andnewdomain.com
. The hostnamewww.newdomain.com
is set as the default domain.
In this configuration, a request to http://olddomain.com
will be handed as follows;
http://olddomain.com
-> https://olddomain.com
https://olddomain.com
-> https://www.newdomain.com
All of this happens before anything gets touched in your manual redirects.
These are the redirects that you define in your hosted site's redirects list. You'll find this in your site dashboard under the Hosting tab.
In Webflow, each redirect consists of;
/about
/new-about
or a full URL like https://www.newsite.com/about
. IMPORTANT: This design means that if you are merging several sites together and have multiple domains (domainA.com
anddomainB.com
) connected to your Webflow site, they are treated the same and you cannot distinguish them in redirects. This would have to be done externally.
There are two types of explicit redirects-
(.*)
pattern in the from string, and these redirects follow special escaping rules ( see that lesson ). See the wildcard redirects lesson for details. Google currently does not punish redirects; however it's poor practice to over-do it, as it creates a bad user experience (UX).
One important common problem designers encounter when setting up their redirects is that updating and publishing redirects does not seem to change anything.
Most often this is due to the fact that browsers like to cache those redirects for performance, and they hold onto them for quite some time.
In Google Chrome, you can open Chrome's dev tools ( CTRL+SHIFT+I
), and at the top of the Network tab, you'll find a Disable cache checkbox option.
Turn that on, and now any time you are working on your site, you can simply open Dev Tools to ensure you are seeing the live version rather than a locally cached copy.
This affects your cached redirects as well.
Certain URL characters like commas do not work properly in Standard redirects. Webflow requires you to URL-encode these characters, e.g. a comma is a %2C
. However when you request a URL containing a comma, browsers do not always encode these, Webflow does not either- resulting in a failed match.
The only solution I'm aware of at this point is to use a Wildcard redirect instead.
Webflow has no CSV bulk import / export capabilities for redirects.
See Sygnal's lesson in this course for some alternative solutions.
Some platforms like WordPress support base paths like /my-awesome-article
. For designers rebuilding their site on Webflow, the blog will generally be in the CMS and those paths will change to something like /blog/my-awesome-article
.
Webflow does not have a means to wildcard redirect these. The cleanest solution is to redirect each of those paths individually, possibly resulting in 1,000's of redirects.
There's currently no way to redirect e.g. /about
but not /about/us
.
A common scenario in Webflow is when someone wants to redirect the homepage of their site but not the sub-pages, this currently does not have a clear resolution.
IMPORTANT: This design means that if you are merging several sites together and have multiple domains (domainA.com
anddomainB.com
) connected to your Webflow site, they are treated the same and you cannot distinguish them in redirects. This would have to be done externally.
In certain cases, Webflow will automatically generate a redirect URL for you, for example if you change the slug of a static page in the designer.
However if you are not yet on a Site hosting plan, you do not have the ability to see or remove these redirects.
Certain paths do not appear to work with redirects, for example;
/.well-known/...
paths