Bulk import 301 redirects

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.

  • Chris Scott
  • Jul 1 2017
  • Janne Kanerva commented
    02 Mar 11:51

    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();

    var redirects = [
    {source: '/old1', target: '/new1'},
    {source: '/old2', target: '/new2'},
    {source: '/old3', target: '/new3'},
    {source: '/old4', target: '/new4'},
    ];

    redirects.forEach(function (rule) {
    scope.redirectPath = rule.source;
    scope.redirectTarget = rule.target;
    scope.addRedirect();
    });
  • Rachel WastePlace commented
    27 Feb 16:59

    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 20:59

    This would be a gem. Please bump!

  • Terry Hopper commented
    29 Jan 17:27

    Yes, please. Redirects are a pain, but so important for SEO.

  • Jake Spirek commented
    14 Jan 16:12

    Pretty please!

  • Ferguson Barton commented
    03 Jan 20:14

    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 ;)

  • Natalie Russo commented
    December 20, 2019 16:37

    There really needs to be an option to upload them as a csv.

  • Editor Tension commented
    December 16, 2019 19:58

    still needed — absolutely. would cut down on a ton of manual work.

  • Jake Spirek commented
    November 12, 2019 20:45

    I also have hundreds of 301 redirects to create. Can't believe I'm going to have to do them manually. 

  • Justin commented
    September 26, 2019 18:28

    I love Webflow but these are the items that need to be updated ASAP to take to the next level. One by one redirects is so 2010. 

  • Christopher Travers commented
    August 02, 2019 14:26

    lol @ "I feel sorry for you guys here using things like Shopify and Webflow." 

  • Ashwin Kumar commented
    July 22, 2019 08:31

    If you are using clipboard app in windows 10 OS computer system then also use this homepage clipboard history in windows 10 to get more information about security reason.

  • Jake Spirek commented
    June 18, 2019 13:08

    Pretty please.

  • Brent Hegnauer commented
    May 29, 2019 17:03

    Just entered 400+ redirects by hand. Terrible. Will never do it again even if it means not being able to use an otherwise wonderful platform.

  • Bryan Falla commented
    May 01, 2019 16:16

    I have 388 redirects. Do I really need to do each one individually??? 😵 That's crazy talk. 

  • Matthew Osborn commented
    April 17, 2019 16:29

    Why is this not a feature yet? One of a biggest features needed if Webflow wants people building their blogs on the platform. 

  • Victoria Siemer commented
    January 30, 2019 23:13

    Bumping this. 

  • Pascal Wasinger commented
    September 29, 2018 05:58

    Some please do something about this.

  • Sarah nolen commented
    July 10, 2018 08:22

    I'm just speechless to see this isn't even a feature.. after almost a year still sitting as a feature request?? I feel sorry for you guys here using things like shopify and webflow. Why spend 10 hours if you can do it in 10 sec? Not to mention 301 is an inevitable feature for site redesign - another example of devs have no idea what SEO is about.

  • John Biethan commented
    September 27, 2017 14:32

    Import a CSV file. 

  • Load older comments