• Parlla

    (@parlla)


    Hi,
    maybe you can help me.
    I upgraded my old site to new theme and transfered all my old products to woocommerce. Now I am trying to redirect my old permalinks to new permalinks structure.
    My old permalinks are:
    domain.com/?products=PRODUCT NAME
    New theme permalinks are:
    domain.com/shop/PRODUCT NAME

    I tested some permalink plugins with no result
    Help please!

Viewing 1 replies (of 1 total)
  • petercralen

    (@petercralen)

    Hi,

    You can try some redirect plugins, anyway if PRODUCT NAME is the same like old, you can put redirection in .htaccess (not every link, just glogal redirection /?products= to /shop/)

    You have to use in .htaccess something like this
    RewriteEngine On
    RewriteRule ^/?old-path/(.*)$ /new-path/$1 [L,R=301]

    I am not 100% sure about this, bc. everywhere is something different and I am lost with all these _+_}(.*)$</ 😉
    So if this will not works well for you, just use google to find correct redirection for .htaccess.
    It will be one or two lines of similar code.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect old permalinks to new permalinks structure’ is closed to new replies.