• Hi,

    i am getting a small but annoying problem.

    the pages randomly break. however, it fixes itself once i open:
    wordpress > settings > permalinks > click ‘save’

    I think it is something to do with custom permalinks i set up.

    i read somewhere about the HTACCESS file. and got some code:

    # BEGIN WordPress
    # The directives (lines) between “BEGIN WordPress” and “END WordPress” are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Can anyone confirm this is the code required to fix the issue?

    thanks so much!

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

    (@topher1kenobe)

    You probably don’t want to mess with the htaccess stuff. That’s pretty standard and shouldn’t really be changed.

    Inside WordPress there’s a system called the rewrite system, and it manages how permalinks are built etc. It’s basically a collection of recipes for how links should be. When it gets messed up, resaving permalinks resets them all and they work again.

    So something is corrupting your rewrites. This could be a plugin that manages custom post types or custom taxonomies.

    Aside from that there’s a lot of sleuthing you’ll need to do to figure out what’s doing it. It’s almost certainly a plugin, so if possible you could turn them off one at a time and see if the problem goes away.

    Thread Starter richardwilde90

    (@richardwilde90)

    So, i’m using Rank Math plugin (which is like YOAST Seo)

    Let say if RankMath plugin causes the problem, do i need to stop using this altogether. Or would uninstalling it and reinstalling it fix the issue?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Why do Pages randomly break because of the permalinks?’ is closed to new replies.