Woocommerce Remove base URL issue

#197313
  • Resolved fpman
    Rank Math free

    Hi there,

    I’m currently using Rank Math with WooCommerce and LearnDash. In RM -> General Settings, I enabled “Remove base” so my product URL becomes /product-cateory/product-name/ , or in my example /qualification/level-3-diploma/. When user purchases this product, they gain access to a LearnDash course with the same name.

    In LearnDash, I have set up my course URL to be like so, /my-course/level-3-diploma/. However, this URL loads the product page instead of the LearnDash course page. In fact, I can type in /randomstuffhere/level-3-diploma/ and it will load the product page, and no 404.

    The above happens when “Remove base” is enabled in RM, and when disabled, both product and LearnDash URLs work fine and as expected. However, I get the /shop/ prefix when I do not like.

    Could you advise how I can have “Remove base” URL without it seemlying over-ruling other URLs with same end path?

    TIA

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

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

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Thank you.

    fpman
    Rank Math free

    Hello,

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

    Thank you.

    Brian
    Rank Math free

    Hello,

    Thank you for getting back to us.

    This issue happens because both the product page and the course URL do share the same slug on the site. Slug = /level-3-diploma/. Also noticed that they share the same category name which would also be an issue.

    Additionally, you also seem to have a page with the same slug as your product page here: /nalp-qualifications/level-3/.

    Therefore enabling the options to remove base and category base in your product and also within the links section will cause a conflict on these URLs and WordPress has to pick one to consider as a priority.

    The solution to this is changing the slug of any of the items here either the product or the course page. That will help WordPress determine the difference between the two links when these Rank Math options are enabled.

    We hope this clarifies your point here. Please let us know if you have any other questions.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Woocommerce Remove base URL issue’ is closed to new replies.