Viewing 3 replies - 1 through 3 (of 3 total)
  • Izfy84 –
    The limit actually depends on your site’s settings for the limit to the number of post fields to process. Most people cannot change this as many hosts do not allow access to the main php config ini to change (and this is not a setting that can be changed in a local php.ini file, unfortunately).

    The BEST thing to do when this happens, is to download the redirects file, add your new ones, then re-upload and replace the ones you had. You can also just upload new ones to add to it, if you are familiar with the file format. If you download the file, you will see how it is laid out and you can use that as an example. Just remember to keep a backup of the file (which you should do anyway) and to make sure if you are just adding to the redirects that you do not click to upload and replace them, or the new ones will replace all of the old ones. Of course, if you use the full list every time, you want to replace all of them or it will duplicate them and cause other issues.

    Hope this helps you out.
    In the future we will change this so adding a new one does not require re-posting all of the other ones – which will solve this problem.

    Warm regards,
    Don

    Thread Starter lzfy84

    (@lzfy84)

    Hi, thanks for the reply but I don’t think that’s the problem. If I remove an existing redirect and add a new one, it still doesn’t work. I recently moved the website to a new hosting, could that have anything to do with it?

    Yes, it is possible.
    Here is my thought – On the old host, the number of allowed post fields was higher so you saved more into the database. Once you moved, the number is lower and now when you go to add one, it will not save (as it does not process the post because of too many fields).

    If this is the case, you would not be able to save any more until you deleted enough redirects to drop it below the number of max fields allowed – at which time you could add new ones until you hit that max number.

    The ‘max_input_vars’ php config setting can vary from server to server – even on the same hosting site. And many times this is not something a user can set or even has access to. Some hosts consider it a security risk to allow a large number of post fields – some just keep it low so it does not use up a lot of resources. Personally, I have seen this number set to upwards of 10,000 instead of the the default 1000 without any issues, but I don’t recommend that on a shared host anyway, as you could crash the server and lose the data during the post (and then you are worse off). On the opposite end of that, I have seen servers set to 250 as the max – it all depends on the host and their preferences.

    Also, if the server is set to 1000, then the most redirects you can have set up is 500 (there are 2 setting fields per redirect) – so whatever you have as your max number in your settings, the number of allowed redirects will be half of that.

    I still strongly recommend doing it as an upload with you adding them to the existing ones that are there, It will add to them, you just will not be able to edit them in the listing page as it will not save anything from there due to the max number of post fields being exceeded. If you need to make changes to existing one, you download the entire list, make your changes and then upload and replace the ones there with the new file. It is a bit more work, but it is the only way to do it without adjusting the settings int he php.ini file (master file, not the local file).

    Warm regards,
    Don.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't add new redirects’ is closed to new replies.