Sea
(JJ Delgado)
May 27, 2020, 7:19am
1
I have read 301 redirects | Webflow University but Im still a bit confused.
In a WordPress site that I’m moving to Webflow, my posts urls start with the year, for example:
esmoscu.com/2020/post1
esmoscu.com/2020/post2
esmoscu.com/2020/post400
So, I want to redirect all my posts under esmoscu.com/2020/ … to esmoscu.com/blog/ …
Is this the correct way to do it?
Old path: /2020/(.*)
Redirect to path: /blog/%1
Any help will be greatly appreciated.
locase
(luke@locase)
May 27, 2020, 11:39am
2
Yes that’s correct. Just make sure that the post slug stays the same as it was on WordPress, or it won’t redirect
Sea
(JJ Delgado)
May 28, 2020, 6:42am
3
Thanks for your reply. A little confirmation is reassuring
Sea
(JJ Delgado)
May 28, 2020, 8:54am
4
I just realize that I probably need to keep the “2020” in the new slug.
Because the current WordPress url is like this:
esmoscu.com/2020/10-learning-tips
So, the new webflow url should be like this:
esmoscu.com/blog/2020/10-learning-tips
Hence,
Old path: /2020/(.*)
Redirect to path: /blog/2020/%1
Am I on the right track?
Tim_Metz
(Tim Metz)
April 29, 2021, 12:41am
6
Hi everyone,
I’m facing a similar case, though it seems slightly more complex. The slugs of my blog posts in WordPress all start with the full date. E.g.,https://www.saent.com/2015/01/02/habits-of-habits/
.
In Webflow, this will become http://www.saent.com/blog/habits-of-habits
. How should I set up a 301 redirect for this?
Thanks in advance for your help!
Tim
memetican
(Michael Wells)
February 24, 2023, 7:01pm
7
Hey @Tim_Metz , to prevent conflicts with the rest of your site I think I’d create one for each year like this;
/2015/(.*)/(.*)/(.*)
→ /blog/%3
/2016/(.*)/(.*)/(.*)
→ /blog/%3
/2017/(.*)/(.*)/(.*)
→ /blog/%3