• Hi,

    Every few hours or so all pages on my site except the home page start 404ing and the way to fix this is to go to Settings > Permalinks and click ‘save’ without making any changes.

    It seemed to me that the .htaccess file was getting changed and the permalink rewrite rules were being removed from it. But my host just now said this:

    ‘I did a comparison of the .htaccess file in use and the one I made a backup of earlier and no differences were detected. Since this appears to be getting caused (and resolved) on the site’s backend via resetting the permalinks, you might have to contact WordPress’ support or post to their support forums as this doesn’t appear to be the result of any action being done on the server (or our) side.’

    I’m really stuck on this one and need help urgently. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    You can modify your .htaccess and remove the permalink generated codes outside the wordpress tags as shown below.

    # BEGIN WordPress
    # END WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Could be a plugin that is causing it.
    Hope this helps.

    Thread Starter kevinthompson

    (@kevinthompson)

    Thanks Tim, I’ll try that.

    What do you think about changing the file’s permissions and making it unwritable, so no other plugin or file can modify it?

    You are welcome.

    Yes, that is also a good idea. You can disable the write permission on the file, you can set it to 444.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Strange recurring permalinks issue’ is closed to new replies.