product-category strip leads to 404

#607105
  • Resolved Sam
    Rank Math free

    HI,

    We are having again issues with the strip product-category. We are having 404 errors now which we could partly solve via a redirection.

    Can you please have a look into this?

    thanks

    Sam

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

    Thanks for contacting us and sorry for the inconvenience caused.

    When that situation happened did you try saving the permalink structure once under WordPress Dashboard > Permalinks?

    That situation usually happens when the permalinks need to be flushed on the website.

    To get around the issue you can introduce a function to update the permalinks automatically every hour and that should help clear the issue:

    
    add_action('my_hourly_event', 'do_this_hourly');
     
    function my_activation() {
        if ( !wp_next_scheduled( 'my_hourly_event' ) ) {
            wp_schedule_event(time(), 'hourly', 'my_hourly_event');
        }
    }
     
    add_action('wp', 'my_activation');
     
    function do_this_hourly() {
        global $wp_rewrite;
        $wp_rewrite->flush_rules();
    }
    

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope this helps clarify the situation and resolve the issue on the website.

    Don’t hesitate to get in touch if you have any other questions.

    Sam
    Rank Math free

    Hi,

    We have tried several times with flushiing the permalinks, changiing etc. This issue is there for a while now and as you can see from the tickets this issue appears quite often. I don’t want to burden the system with flushing every hour as that doesn’t solve anything.
    Last time something was done in the backend unfortunately we don’t know what so we cannot do it ourself. .

    Sam
    Rank Math free

    Hello,

    Anybody going to look at this please? We still have the issue. As Ahrefs and sitebulb still reporting this. Unfortunately, flushing doesn’t help.

    Thanks in advance

    Hello,

    Sorry for the unexpected delay and any inconvenience caused due to that.

    The category URLs are currently working fine: https://your-domain.com/concept/

    So the issue is related to flushing the permalinks on your site. The only solution, in this case, is to use the shared filter or disable the Remove Category Base option if you don’t want to use the filter.

    If the issue is related to something else or some other URLs, let us know so we can check this further.

    Looking forward to helping you.

    Sam
    Rank Math free

    Hi

    Thanks for getting back to me.

    We still see 404.

    Like I said in my previous message we have put in redirects so that is why they seem to be working as soon as they are removed 404 or some weird redirection to a product page.

    Sorry but we really have done all we could to flush and change the permalinks since that is a known issue. Mind you we have WPML as well installed.

    Thanks

    Hello,

    In most cases, this issue is caused by caching of the permalink structure and if flushing the permalink structure doesn’t help, can you please point out where you have added those redirections you mentioned? Or did you add it to your htaccess file? We asked this so we can try and debug this further.

    Also, please share your FTP login in the sensitive data section.

    Looking forward to helping you with this one.

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

The ticket ‘product-category strip leads to 404’ is closed to new replies.