Random 404 errors
-
Hello, I’m getting 404 errors in a similar way this person was getting 404 errors:
From time to time, if you click a link not related to Buddypress, you get a 404 error. I uploaded a query monitor and found that on pages that get those 404 errors, there’s a different “Matched Rule” when the page is requested. When it’s not working it’s [^/]+)(?:/([0-9]+))?/?$, when it is working it’s (.?.+?) (?:/([0-9]+))?/?$
I tried implementing the code in the above link, replacing my failed matched rule with theirs in the code, but I got critical errors. I’m wondering if the code is correct in my instance, and I added it to the class-wp file right after $rewrite = $wp_rewrite->wp_rewrite_rules(); (I don’t know what he means by “in the parse function request”), so I’m wondering if the place I placed it is correct as well
- You must be logged in to reply to this topic.