Unwanted url redirections

#209662
  • Resolved Silvia
    Rank Math free

    Hi,
    I don’t know what happen.
    I have created 2 subcategories for products on woocommerce.
    The correct links are
    http://www.cristinosnacks.com/nuovo/taralli-tarallini-artigianali/taralli-linea-premium/
    http://www.cristinosnacks.com/nuovo/crostini/crostini-linea-premium/

    I have also added a product on one subcategory http://www.cristinosnacks.com/nuovo/taralli-tarallini-artigianali/taralli-linea-premium/taralli-olive-nere/

    I can see the product but I CAN’T see the subcategory.
    If I click on the subcategory links I have been redirected to an edited url like this without the last letter of the main category and without the ‘/’
    http://www.cristinosnacks.com/nuovo/taralli-tarallini-artigianaltaralli-linea-premium/taralli-olive-nere/

    I have followed your guide https://rankmath.com/kb/unwanted-urls-redirecting/ but everything looks fine. I don’t know why this happen.

    I look forward to hearing from you.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Brian
    Rank Math free

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Upon checking your sub-category pages I noticed that they are actually leading to a 404 page and not a redirection without a slash.

    I have gone ahead and disabled all the WooCommerce settings to remove the category base which could be the possible reason causing the issue but even after disabling the WC module, the issue was still present.

    Therefore, this issue seems that it is an indication that the translation of slugs on your website might not be properly set up from your translation plugin.

    Please double-check that all your settings are correct and that you are translating the slugs correctly from WPML before trying to remove the category bases in Rank Math settings.

    If you have any other questions or require any further assistance don’t hesitate to get in touch.

    Thank you.

    Silvia
    Rank Math free

    Hi Brian,
    I am sorry but maybe there is a misunderstanding.
    I have not translated the website yet. I have installed the WPML plugin for future use.

    The main categories are showed correctly in the main language.
    The subcategories (same language) are being redirected to a wrong url. You can see the hand icon showing you the ‘i/’ missing for some reason. https://snipboard.io/gUnWmE.jpg

    As you have already checked there is not any subcategory redirection on the list.

    Brian
    Rank Math free

    Hello,

    Thank you for contacting Rank Math again.

    Upon checking your issue I have tried to troubleshoot the site using the health check plugin but it was not possible. Would you please create a staging site environment to which we can do some troubleshooting so that we can assess this issue?

    We really look forward to helping you.

    Thank you.

    Silvia
    Rank Math free

    Hi Brian,
    thank you for checking.
    Yes, you also disabled woocommerce on Rankmath, and all the links to the products disappeared.
    As the ‘Remove base’ and ‘Remove category base’ are activated, if you disable Woocommerce, all the links are broken.

    At the moment only 2 links are broken, the ones that go to the subcategories:
    /taralli-tarallini-artigianali/taralli-linea-premium/
    /crostini/crostini-linea-premium/
    All the others seem to work correctly.

    I have created a new copy of the website and updated the link inside the box.

    Silvia
    Rank Math free

    I have edited some fields on permalink page and now there is not any redirections to subcategories, but unfortunately the ‘CATEGORY’ disappear from the url.
    Now it is like this.
    http://www.website.com/titleproduct

    but it should be like this http://www.website.com/category/titleproduct as it was before.

    The Rankmath settings seems to be ok.
    Remove base –> ON
    Remove category base –> ON
    Remove parent slugs –> OFF

    Can you pleas check it? I think there is a bug.

    Silvia
    Rank Math free

    Why I am not receiving any assistance?

    Hello,

    Thanks for getting back. Sorry for the unwanted delay and any inconvenience that might have been caused due to that.

    While trying to check for a plugin conflict the staging site threw a fatal error and the WP dashboard is no longer accessible. Please share the FTP access details so we can fix the error and assist you further.

    We really look forward to helping you.

    Silvia
    Rank Math free

    Hello,

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

    Thank you.

    Silvia
    Rank Math free

    Hi,
    I have noticed it.
    I cannot share the FTP access because the hosting ask me to add your IP as well.
    I have sent you the recovery link.

    Hello,

    Thanks for getting back. Sorry for the delay and any inconvenience that might have been caused due to that.

    I wasn’t able to log in using the link that you have shared. It shows Recovery Mode not Initialized page:

    Please check and let us know when it is fixed. You can also use FTP to disable WPML and its add-on plugins from the wp-content/plugins by renaming the plugins.

    We really look forward to helping you.

    Silvia
    Rank Math free

    I have logged in the website and disabled WPML.
    I also restored the website from the recovery mode.
    Now, it’s quite URGENT.

    Remember this is a staging site. After your fixings, you should replicate them to the website on the main domain.

    Brian
    Rank Math free

    Hello,

    Thank you for getting back to us.

    Just checked your URLs and the reason why the category is removed is that you have set the remove base category to ON. This is usually the default way of redirecting links with that settings.

    Regarding the first issue, I was not able to replicate it on the staging site. The URL in this case seems to be having the "/" between the category and slug.

    Please do let us know if you are able to replicate the same. If not do share with us the link and we will gladly check it out.

    We are looking forward to helping you.

    Silvia
    Rank Math free

    Hi Brian,
    I am really sorry to receive this type of assistance.

    Remove category base –> ON
    MEANS This
    Remove prefix from category URL.
    default: /product-category/accessories/action-figures/ – changed: /accessories/action-figures/
    IT REMOVES PRODUCT-CATEGORY NOT THE CATEGORY FROM THE URL

    Now the staging site is not working anymore after your editings.
    I have edited the sensitive data with a new website installation

    Brian
    Rank Math free

    Hello,

    Thank you for getting back to us and apologies if that was not clear.

    The issue with the redirection without the slash was not on your staging site. Unlike your main site, this is still persistent and we can only troubleshoot it on a similar interface on the staging site.

    When I accessed your staging site it did not match your main site. Therefore we need an exact match of your main site, and to do so you can use the WP staging plugin to create it.

    On further testing, this link using different tools shows that it is associated with a 503 redirect.
    See screenshot:
    503

    The 503 error occurs when your web server is unable to get a proper response from a PHP script. This could be from a plugin as well. If this is not resolved via conflict check, then you may also try to contact your host provider regarding this issue as well.

    Hope this helps. We are looking forward to providing more assistance to you.
    Thank you.

    Silvia
    Rank Math free

    Hi Brian,
    yes. The main website is now working correctly after I have edited the permalink settings. Thank you!

Viewing 15 replies - 1 through 15 (of 16 total)

You must be logged in to reply to this ticket.