I have to set up about a bajillion redirects this weekend. Would be awesome to have a similar feature to the CMS import to be able to add redirects in bulk.
None of the code snippets (that would be pasted into console) work - do what Michael recommends below to import/export, use Finsweet - it's f'in sweet!
Michael Wells commented
31 Oct, 2022 08:52pm
For CSV imports, use Finsweet's free Chrome extension.
You get a nice import button on your redirects page.
Just some small tweaks but it worked well for me :)
Megan Tilton commented
16 May, 2022 04:25pm
Yes, please!
Graphite Marketing commented
27 Feb, 2022 07:40am
Yes please!
Juraj Carnecky commented
23 May, 2021 02:48pm
Yes please :)
Abby Cameron commented
30 Apr, 2021 01:57pm
Yes please! Would love the ability to import all redirects!
Max Shepley commented
8 Feb, 2021 03:39pm
I have created a short tutorial showing how you can use Janne's hack AND Parabola to bring together your URL links and follow the var redirects structure. Hopefully some find it helpful!
I've made a video to build on the use of the script posted below. The script is amazing but isn't too helpful if you have 1000+ items and don't want to manually enter them into the script. Using Parabola's free tier, you can do this really quickly! Check it out: https://youtu.be/fhHLOyVrwkk
var hostingContainer = document.getElementsByClassName('hosting-tab')[0]; var hostingController = angular.element(hostingContainer); var scope = hostingController.scope();
Janne's hack worked!!!! I put 800 redirects into an excel sheet, concatenated the data together to follow the var redirects structure, and then copy and pasted into the google dev console. No need for a timeout, this hack is truly awesome. Thank you Janne!!!!!
"This hack works at least with few redirects in the list. If more, maybe some sort of a timeout between addRedirect calls is in place...
So you run this code in Google Chrome developer console as logged in user in Webflow on the Hosting tab in admin section pages. Just copy/paste the code to the console. Before that prepare the redirects-list with your own redirect rules.
var hostingContainer = document.getElementsByClassName('hosting-tab')[0]; var hostingController = angular.element(hostingContainer); var scope = hostingController.scope();
Yes pelase! This is essential to anyone having to move over legacy websites
Janne Kanerva commented
2 Mar, 2020 11:51am
This hack works at least with few redirects in the list. If more, maybe some sort of a timeout between addRedirect calls is in place...
So you run this code in Google Chrome developer console as logged in user in Webflow on the Hosting tab in admin section pages. Just copy/paste the code to the console. Before that prepare the redirects-list with your own redirect rules.
var hostingContainer = document.getElementsByClassName('hosting-tab')[0]; var hostingController = angular.element(hostingContainer); var scope = hostingController.scope();
woof. yeah, i was lucky i only had 70 or so, but I've had plenty of projects where this would have been brutal.
Alexa-Rae Navarro commented
30 Jan, 2020 08:59pm
This would be a gem. Please bump!
Terry Hopper commented
29 Jan, 2020 05:27pm
Yes, please. Redirects are a pain, but so important for SEO.
Jake Spirek commented
14 Jan, 2020 04:12pm
Pretty please!
Ferguson Barton commented
3 Jan, 2020 08:14pm
It's 2020 and it's time to be able to bulk upload 301's! Please make either this a feature, it is essential if you're going to steal away loyal Wordpress clients ;)
None of the code snippets (that would be pasted into console) work - do what Michael recommends below to import/export, use Finsweet - it's f'in sweet!
For CSV imports, use Finsweet's free Chrome extension.
You get a nice import button on your redirects page.
https://chrome.google.com/webstore/detail/finsweet-extension-for-we/mjfibgdpclkaemogkfadpbdfoinnejep
For CSV exports, you can use my script here-
https://www.sygnal.com/blog/export-301-redirects-as-csv
Still waiting for this feature, and along the same lines ability to bulk export as well!
Hey everyone,
The original script is no longer working but I've updated it so that it works in the publishing tab/current setup
var hostingContainer = document.getElementsByClassName('redirects')[0];
var hostingController = angular.element(hostingContainer);
var scope = hostingController.scope();
var redirects = [
{redirectPath: '/old-path', redirectTarget: '/new-path'},
];
redirects.forEach(function (rule) {
scope.redirectPath = rule.redirectPath;
scope.redirectTarget = rule.redirectTarget;
scope.addRedirect();
});
Just some small tweaks but it worked well for me :)
Yes, please!
Yes please!
Yes please :)
Yes please! Would love the ability to import all redirects!
I have created a short tutorial showing how you can use Janne's hack AND Parabola to bring together your URL links and follow the var redirects structure. Hopefully some find it helpful!
https://www.sunrise.design/resources/bulk-import-301s
I've made a video to build on the use of the script posted below. The script is amazing but isn't too helpful if you have 1000+ items and don't want to manually enter them into the script. Using Parabola's free tier, you can do this really quickly! Check it out: https://youtu.be/fhHLOyVrwkk
Janne's hack worked!!!! I put 800 redirects into an excel sheet, concatenated the data together to follow the var redirects structure, and then copy and pasted into the google dev console. No need for a timeout, this hack is truly awesome. Thank you Janne!!!!!
"This hack works at least with few redirects in the list. If more, maybe some sort of a timeout between addRedirect calls is in place...
So you run this code in Google Chrome developer console as logged in user in Webflow on the Hosting tab in admin section pages. Just copy/paste the code to the console. Before that prepare the redirects-list with your own redirect rules.
Please!
Yes! Please!
Yes pelase! This is essential to anyone having to move over legacy websites
This hack works at least with few redirects in the list. If more, maybe some sort of a timeout between addRedirect calls is in place...
So you run this code in Google Chrome developer console as logged in user in Webflow on the Hosting tab in admin section pages. Just copy/paste the code to the console. Before that prepare the redirects-list with your own redirect rules.
woof. yeah, i was lucky i only had 70 or so, but I've had plenty of projects where this would have been brutal.
This would be a gem. Please bump!
Yes, please. Redirects are a pain, but so important for SEO.
Pretty please!
It's 2020 and it's time to be able to bulk upload 301's! Please make either this a feature, it is essential if you're going to steal away loyal Wordpress clients ;)