404 error after deactivating ‘Remove Base’ (/shop/*)

#133469
Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    I’ve checked the link you have provided, and it seems that it’s not getting an error 404, but it’s not redirecting from 1 to 2.

    It is also working on our end after disabling the Remove base and setting the product permalinks to Shop base with category.

    Please refer to this screencast on how it should be automatically redirected:
    https://i.rankmath.com/kTHWeL

    I hope that helps. Thank you, and looking forward to your update.

    What i set is exactly as your screenshot, but after it turned out 404, i set the option back ON because i don’t want to have google flag those links as error.
    https://i.imgur.com/oQ9woZB.png

    Here is my screencast when turning off the option:
    https://drive.google.com/uc?id=1VyMs7qfk3AciOTp_nk1x3WRIW2JyNd1g

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Although we can handle the redirects from shop/ to the non-shop version – we cannot do the same thing for the opposite situation. We have a remove shop base but enabling the option will not append the shop to URLs where it didn’t exist before.

    You will need to manually redirect the non-shop version of your URLs to the shop version.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    But the screencast you shared showed that you turn the function OFF and the non-shop URL is redirected to /shop ??
    https://i.rankmath.com/kTHWeL

    I can manage redirection from non-shop to /shop in ‘Rank Math Redirection’ but the problem is that i cannot think of any Regex pairs that work with all existing categories as the source URL doesn’t have specific base. As per my examples below :

    1) https://www.zoomcamera.net/digital-camera/digital-camera-mirrorless-camera/olympus-pen-e-pl9-white-with14-42mm-demo/
    Now it is :
    2) https://www.zoomcamera.net/shop/digital-camera/digital-camera-mirrorless-camera/olympus-pen-e-pl9-white-with14-42mm-demo/

    Maybe i have to do redirections, one-by-one, for all existing main categories like this
    /exist-cat -> /shop/%existing-cat%

    Could you please suggest the Regex setting ?

    Hello,

    I don’t see any automatic redirection in the shared screencast. It loads the correct URL since it is loaded from the dashboard > Products page which will load the current product URL. Redirections are done for users ho may try to access the product vial the previous URL structure.

    Unfortunately as my colleague mentioned, you cannot redirect your URLs from a URL without the shop base to URLs with the shop base. We can only do redirecting from those that have to without. You will have to redirect the products individually .

    Hope this helps you.

    I don’t see any automatic redirection in the shared screencast. It loads the correct URL since it is loaded from the dashboard > Products page which will load the current product URL. Redirections are done for users ho may try to access the product vial the previous URL structure.

    >>>>

    Your screencast https://i.rankmath.com/kTHWeL at 00:46, it clearly show that you deleted /shop from the url and enter, then it redirected to /shop/ again.

    If you insist that the plugin cannot do what i see in your screencast, please suggest me proper regex. I don’t think i have to do redirect products individually, but category individually instead.
    /cat1/* -> /shop/cat1/*
    /cat2/* -> /shop/cat2/*
    if I have 10 categories, I just create 10 redirection rules. Do you agree ?

    Hello,

    But the screencast you shared showed that you turn the function OFF and the non-shop URL is redirected to /shop ??
    https://i.rankmath.com/kTHWeL

    Yes, that works only if the shop/ prefix was removed using Rank Math in the first place.

    /cat1/* -> /shop/cat1/*
    /cat2/* -> /shop/cat2/*
    if I have 10 categories, I just create 10 redirection rules. Do you agree ?

    Yes. You will need a separate redirect for each category URL.

    Yes, that works only if the shop/ prefix was removed using Rank Math in the first place.
    —> I did that.

    Yes. You will need a separate redirect for each category URL.
    —> Could you please suggest redirection entry ? I’m not sure about Regex.

    Hi,

    We could suggest a regex as following:

    
    Source: ^/(?!shop)(.*)
    Target: /shop/$1
    

    but this will affect all URLs including page and post URLs, not just product URLs.

    In this case, you will need a conditional check to make sure it only redirects product URLs. You may have to code the redirect if you don’t want to redirect each of your URLs individually. We may not be able to provide you the code to do so and we will suggest that you consult with a developer to do this.

    Hope this helps.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)

The ticket ‘404 error after deactivating ‘Remove Base’ (/shop/*)’ is closed to new replies.