• Resolved jryanjp

    (@jryanjp)


    I’m trying to import a list of redirects in JSON format. I exported a sample file from the plugin, then I used that exact format to create the entries I need. However, I’m getting the error “Total redirects imported: 0 Double-check the file is the correct format!” It is not providing any useful feedback for where the error in the file is. My JSON is properly formatted and contains all the fields from the original export file. All I did was change the actual redirect data.

    Is there a help file or any documentation on this feature? Here is my JSON below. I’ve tried it without the “plugin” and “groups” entries, since we already have those in the database, but that didn’t work either.

    {
        "plugin": {
            "version": "5.3.4",
            "date": "Mon, 03 Oct 2022 17:28:52 +0000"
        },
        "groups": [
            {
                "id": 1,
                "name": "Redirections",
                "redirects": 1,
                "module_id": 1,
                "moduleName": "WordPress",
                "enabled": true
            },
            {
                "id": 2,
                "name": "Modified Posts",
                "redirects": 0,
                "module_id": 1,
                "moduleName": "WordPress",
                "enabled": true
            }
        ],
        "redirects": [
        {
          "id":2,
          "url": "/fastiep-endorsed-by-naset",
          "match_url": "/fastiep-endorsed-by-naset",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "https://naset.fastiep.com"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":3,
          "url": "/firewall-notification",
          "match_url": "/firewall-notification",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/fastiep-is-not-available-in-your-country"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":4,
          "url": "/privacy-policy",
          "match_url": "/privacy-policy",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/privacy"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":5,
          "url": "/schedule-a-zoom-call-with-us",
          "match_url": "/schedule-a-zoom-call-with-us",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/schedule-a-video-call-with-us"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":6,
          "url": "/terms-of-service",
          "match_url": "/terms-of-service",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/terms"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":7,
          "url": "/call",
          "match_url": "/call",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/schedule-a-video-call-with-us"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":8,
          "url": "/case",
          "match_url": "/case",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/get-fastiep-for-your-school-or-district"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":9,
          "url": "/districts",
          "match_url": "/districts",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/get-fastiep-for-your-school-or-district"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":10,
          "url": "/facebook",
          "match_url": "/facebook",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "https://www.facebook.com/fastIEP/"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":11,
          "url": "/fb",
          "match_url": "/fb",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "https://www.facebook.com/fastIEP/"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":12,
          "url": "/insta",
          "match_url": "/insta",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "https://www.instagram.com/getfastIEP/"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":13,
          "url": "/iste",
          "match_url": "/iste",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "https://go.fastiep.com/auth/signup?referralCode=ISTE"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":14,
          "url": "/learn",
          "match_url": "/learn",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/get-fastiep-for-your-school-or-district"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":15,
          "url": "/naset",
          "match_url": "/naset",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "https://go.fastiep.com/auth/signup?referralCode=NASET"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":16,
          "url": "/nelms",
          "match_url": "/nelms",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "https://go.fastIEP.com?c=5229"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":17,
          "url": "/pamle",
          "match_url": "/pamle",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "https://go.fastIEP.com?c=YE9U"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":18,
          "url": "/pricing",
          "match_url": "/pricing",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/schedule-a-zoom-call-with-us"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":19,
          "url": "/terms",
          "match_url": "/terms",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "https://brain-power.com/terms"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":20,
          "url": "/upload",
          "match_url": "/upload",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/upload-your-students-iep-goals"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":21,
          "url": "/youtube",
          "match_url": "/youtube",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "https://www.youtube.com/watch?v=PLnNEZyc-g72FvlJz9TlAS8KW3GOUbYdDR&list=PLnNEZyc-g72FvlJz9TlAS8KW3GOUbYdDR&mute=0&autoplay=1"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
        {
          "id":22,
          "url": "/teacher-support",
          "match_url": "/teacher-support",
          "match_data": {
            "source": {
              "flag_query": "ignore",
              "flag_case": true,
              "flag_trailing": true,
              "flag_regex": false
            }
          },
          "action_code": 302,
          "action_type": "url",
          "action_data": {
            "url": "/schedule-a-video-call-with-us"
          },
          "match_type": "url",
          "title": "",
          "regex": false,
          "group_id": 1,
          "enabled": true
        },
      ]
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘JSON Import Not Working’ is closed to new replies.