• Hello,

    I need to 301 redirect many (100s) of old permalinks (woocommerce products/categories/tags that are renamed) to the new permalinks so that people who will go browsing for the old URL, will not get a 404 error.

    I am willing to ModRewrite them in htaccess, because I am provided with an Excel table, that lists permalinks old -> new and this will be easy to generate.

    Will this have a huge performance hit on my site?

    Is there a better alternative?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Doing redirects in your .htacces file is probably the most efficient way of doing it because you’re doing the redirects before you’re invoking the PHP processing part of the server.

    Thread Starter karljv

    (@karljv)

    Is there no best practice for this?

    Seems to be a not that uncommon thing to do. (Rename a lot of posts). And the old permalinks will permanently 404 if nothing is being done.

    “Best practice” can dpeend on many different variables, like server type, coding, system, CMS, caching, etc.

    As I said, doing them in .htaccess is the most efficient, so in your case that would most likely be “best practice”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Running a large number of redirects throught .htaccess’ is closed to new replies.