URL Redirection Issue: Missing Slash in Redirected URLs

Hey everyone!

I’m having this weird problem and I can’t seem to figure it out, maybe you could help.

I recently migrated my website domain from aforcebjj.lt to bjj.lt and set up a redirect from aforcebjj.lt to bjj.lt and maintained the same folder structure. However, I’m encountering an issue where the redirected URLs are missing the slash in the beginning when accessed from search engine results or external links.

For example, when visiting http://aforcebjj.lt/classes, I’m redirected to http://bjj.ltclasses/, which results in a broken URL without the slash after the domain.

I’ve tried testing in different browsers and incognito mode, and the issue persists consistently across all URLs. Additionally, I’ve ensured that the redirect rules and canonical URLs are correctly configured to include the trailing slash.

Also, how do I share the read-only link in the new Webflow UI? There’s no more share button.

Thank you very much for your time and your help.

For a completely new domain, for Webflow, the best solution is to add both domains in Webflow. No need to redirect URLs. When you add both old & new domains, the indexed URLs won’t lose SEO value.

1 Like

Hi! Thanks for you reply. How might I do that? I can only set one default domain and the only publish there.

EDIT: I removed default domain and was able to publish to all of my custom domains all at once, but that didn’t seem to help. Plus the client would like the default domain to be bjj.lt, and aforcebjj.lt should redirect to it.

Set WWW.BJJ.IT as your default domain ( unless you’re doing CNAME flattening ). Enable SSL, on by default.

Establish redirects from any URLs that used to exist on AFORCEBJJ.IT - but do not exist on the new site - to their new paths.

With this setup, when a user tries to hit http://aforcebjj.lt/classes, Webflow would;

  • Redirect to the SSL version, https://aforcebjj.lt/classes
  • Redirect to the primary domain, https://www.bjj.lt/classes

And show your page.

In cases where you’'ve created a redirect, e.g. /about-us/about, it would also redirect the path to the correct page, no matter what domain they originally requested.

This approach that Shohel suggested is the easiest, but it only works if you have non-conflicting sitemaps. If both the old site and the new site have the same path, but used for different things, that would fail with this approach. I see this a lot in corporate mergers, e.g. if companyA and companyB merge sites, but need to retain different contact pages even though both used /contact. Then the redirects would need to be handled externally to Webflow.

1 Like

No problem. Add two domains and make bjj.lt default. other domain will be general. I did the same think on many websites.

1 Like

Hi!

Thanks for the reply!

I think I’ve handled it the way you suggested but it still redirects without the slash after domain extension.

aforcebjj.lt was the old domain name used.

bjj.lt is the new domain.

www.bjj.lt is set to be my default domain and 've redirected aforcebjj.lt to bjj.lt from direct admin in aforcebjj.lt hosting provider.

Or is there something that I’m not fully getting? Are suggesting to redirect http://aforcebjj.lt to https://aforcebjj.lt? (from http to https)

I can’t see what configuration you’ve setup, but you do not have the aforcebjj.lt domain added to your Webflow site, so you’re using some other system for your redirects.

If you want to do that you should check their documentation to figure out why your redirects are malformed.

1 Like

Oh ok sorry, now I understand. I will add aforcebjj.lt domain to webflow site and report back, thank you for the clarification!

I got it working! Thank you so much, I’ve struggled with this for three days and the answer was right in front of me. This was a massive help, thank you!

1 Like