• Resolved jagarda

    (@jagarda)


    I use primary category to get a more clean URL/slug like for instance when I show products in the category “e-juice” I have the following example:

    https://vapehuset.se/e-juice/acid-house-black-mango-50ml-shortfill/

    and it works fine but the issue here is that it seems that I can write anything instead of “e-juice” in the url and it will still redirect it.

    I can write the following in the URL and it will still work:

    https://vapehuset.se/fakeurl/acid-house-black-mango-50ml-shortfill/

    The natural thing I would presume would be for a 404 error to show up if I write anything other that the intended URL or this can lead to confusion for the google bots that could potentially index multiple pages with identical content. How do I fix this?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • MariusG

    (@marius_codeinwp)

    Hi @jagarda,

    We understand you’d like the primary category to be shown in the URL too, not just the breadcrumbs. This feature is part of Yoast WooCommerce SEO, which is a premium add-on. It cannot be done using Yoast SEO only.

    We hope to have cleared things up for you and please don’t hesitate to let us know if you have any further questions.

    Thread Starter jagarda

    (@jagarda)

    Hi MariusG,

    the url in the browser is just fine. I want it to include “e-juice” which it does at the moment like this:

    https://vapehuset.se/e-juice/acid-house-black-mango-50ml-shortfill/

    Im just worried that Yoast seem to redirect everything to this /e-juice/ folder. As I showed in the example I can write the following faulty URL:

    https://vapehuset.se/fakeurl/acid-house-black-mango-50ml-shortfill/

    And it will still redirect it to folder /e-juice/. How do I stop this redirection from faulty URLs?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with URL when using primary category’ is closed to new replies.