jaco.thiart
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress Rewrite Rules incorrect during website loadsHi WordPress Support,
We manage to resolve our issue, issue was another plugin causing all this trouble.
This plugin was not related to WordPress core.
The other plugin inserted a rewrite rule that broke pages rewrite rules defaulting to blog.
Keep up the great work, WordPress Team.
Forum: Fixing WordPress
In reply to: WordPress Rewrite Rules incorrect during website loadsHi @threadi
“””
Unfortunately, I can no longer follow. What does this rule have to do with the page URL you are concerned with?
“””The rule is in an order of index to apply to loading of all URLs on WordPress.
The rule I mentioned is specifically for post type “page”
Forum: Fixing WordPress
In reply to: WordPress Rewrite Rules incorrect during website loadsForum: Fixing WordPress
In reply to: WordPress Rewrite Rules incorrect during website loadsHi @threadi
The information is confidential, is there an email I can send the information to for assistance that is not on a public forum.
Forum: Fixing WordPress
In reply to: WordPress Rewrite Rules incorrect during website loadsURLs can be flushed in WordPress, in order for other plugins to add to those rewrites in options table which are dynamically collected and populated by built in functions or plugin actions.
But this rewrite “/([^/]+)/?$”, the correct one, with pre “/” is related to WordPress page loading
Forum: Fixing WordPress
In reply to: WordPress Rewrite Rules incorrect during website loadsHi @threadi
We are trying to solve the problem on a website for one of our clients
<client website>/about-us sometimes after some hours shows the blog page instead of the about page.
I took 2 snapshots of database before and after this occurrence.
After several hours of code reading I managed to compare the option_name “rewrite_rules” on the before and after database table _options and note that the pre character “/” was missing in that particular rewrite rule.
Then I wrote a filter function to capture the incorrect rule index, and replace it with the correct index on filter “rewrite_rules_array”
Then all the pages shows up again, and all client website links to pages loads again.
Please let us know what could be the cause of this?
Kind Regards,