Hello,
I apologize for the issue you are facing with 404 errors on your website after turning off the option to remove prefixes like /shop/*, /product/* from product URLs. It seems like the changes you made to the permalinks structure have caused this issue.
Based on the information provided, it appears that the issue persists even after switching themes and clearing the WP Rocket cache. To troubleshoot this further, I recommend checking the following:
-
Permalink Settings: Ensure that the permalink settings are correctly configured. You can navigate to WordPress Dashboard > Settings > Permalinks and confirm that the settings match your desired structure.
-
Rank Math Settings: Verify if there are any conflicting settings in Rank Math related to permalinks or redirects that might be causing the 404 errors.
-
Theme Compatibility: Some themes may have specific requirements for permalinks or custom structures. Check if there are any theme-specific settings related to URLs or permalinks that need adjustment.
-
Plugin Conflict: Temporarily deactivate other plugins one by one to check if any plugin is conflicting with the permalink structure set by Rank Math.
If after checking these points, the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further in resolving the 404 errors.
Thank you for your understanding and patience as we work to resolve this issue for you.
Best regards.
Sources:
WordPress Permalink Structure & Changing Individual URLs ยป Rank Math
Solving Redirection Issues Using Rank Math SEO Plugin ยป Rank Math
How to Find Out Where 404 Errors Are Coming From ยป Rank Math
Why the Sitemap_Index.xml is Throwing a 404 Error ยป Rank Math
Hello,
Thank you for contacting support.
After doing that we would recommend doing a permalink flush by going to WordPress Dashboard > Settings > Permalinks and hitting the save button.
Another thing to note is that our plugin won’t implement redirections from the old permalink structure to the new one, so if you are accessing the old URLs expecting a redirect to the new format that won’t happen automatically and we recommend adding the redirections to prevent issues like this in the future.
Don’t hesitate to get in touch 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.