• I imported all my redirects from .htacces. Most didn’t work. It truncated links based on quotes, which is not just legal syntax but required for urls with spaces. It also seemed to trip up on other characters. Examples of working .htaccess redirects that failed on import could be:
    Redirect 301 /folder/another/XXX%20YYY https://eg.com/foo/bar/here-we-go
    Redirect 301 "/folder/another/xxx yyy zzz" https://eg.com/foo/bar/and-again

    Thereafter I had a lot of bad redirects in the database and permalinks broke across the site. Any time I added a new post or duplicated one using the duplicate-post plugin the resulting permalink would give a 404 error and only the ?post link worked. Disabling this plugin fixed the problem, i.e. a refresh on the 404 page returned a valid page. This either meant that this plugin broke everything, which with over 400K users is highly unlikely, or it meant that the bad redirects I imported were the problem. I used the delete option on the settings page to remove all data created by the plugin and deactivate it and then reactivated it and that seems to have fixed the problem. This means I can’t use the import, which is a drag. It also suggests that it is possible to add bad redirects that can break one’s site’s permalinks…which is essentially the same as breaking the entire site.

    On the flip side, score one for the delete option! Worked a treat. Also, thanks for all your work on a plugin that provides such vital functionality to any site.

    https://www.ads-software.com/plugins/redirection/

  • The topic ‘Issues with import from .htaccess’ is closed to new replies.