Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1352078

    Hi, almost everyday my website have issue with permalinks. Many pages (for example portfolio pages) start to give 404 error.
    So, i have to login to backend and save permalink configuration (without any change). All website so start woking correctly.

    I don’t know how to resolve issue…
    Thank you.

    • This topic was modified 2 years, 11 months ago by infogestbs.
    #1352143

    Hi infogestbs,

    Can you try to check if the .htaccess file is not changed on a daily basis?

    Best regards,
    Nikko

    #1352169

    I don’t think.
    I have done these attempts to try to solve issue:
    1 – disabled woocommerce (first time i thought was an issue with woocommerce permalinks), but no result
    2 – disalbled and changed security plugin
    3 – migrated to a new server with updated php
    4 – renamed old .htaccess, so new was created

    But this issue is not everyday, today for example i had no issues…. So i don’t know what else i can check…

    Thank you
    Davide

    #1352271

    The problem also occurred today.
    I checked, and the last change to the htaccess file was yesterday at 10.10, when I changed a parameter just to have a certain date of modification. After 10.10 yesterday the site was fully functional until this morning, when I realized that the problem arose again.
    Thanks

    Davide

    #1352309

    Hi Davide,

    After listening to the issues mentioned, I think it is best to ask for your hosting provider to check on this issue as it seems to be unusual and may be due to an unstable server.

    Best regards,
    Nikko

    #1352315

    Hello, it is not possible. I moved the website to a new vps last week, where there are only two sites, just to rule out a server problem.
    Categorically rule out a server problem, since both the old and the new (both OVH vps, but the current one is more up-to-date) the problem is identical.
    Thanks

    • This reply was modified 2 years, 11 months ago by infogestbs.
    #1352501

    Hi infogestbs,

    I see, I have checked your .htaccess file and it seems it has a lot of things on it, this is what the default .htaccess file on WordPress:

    # 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

    However on your site it does contain a lot of things which are coming from this plugin All In One WP Security, please try to disable the plugin, delete your .htaccess file (make a backup of it) and regenerate it by saving your permalinks. Let us know if this helps.

    Best regards,
    Nikko

    #1352503

    Already tried, same issue with Worfence and without any security plugin, also with a new htaccess file.

    Today i disabled your “delete old css and js files”, i will check if tomorrow i’ll have same issue.
    I can give you another information: today I saw that it is not even necessary to save the permalink structure, it is enough to enter the administrative area and position me on the settings for the site to work again.

    Thanks

    #1352506

    Hi infogestbs,

    Try to disable plugins and also switch theme so you can see if the trigger is the theme or one of the plugins.
    Also, another workaround though it’s not a long term solution is setting the permission of the .htaccess file to read-only.

    Best regards,
    Nikko

    #1352507

    Ok, i will try in a copy of the website. Thank you.
    Davide

    #1352517

    Hi Davide,

    You’re welcome :)
    Just let us know how it goes.

    Best regards,
    Nikko

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.