
-
AuthorPosts
-
May 17, 2022 at 2:26 pm #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.
May 18, 2022 at 6:52 am #1352143Hi infogestbs,
Can you try to check if the .htaccess file is not changed on a daily basis?
Best regards,
NikkoMay 18, 2022 at 11:34 am #1352169I 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 createdBut this issue is not everyday, today for example i had no issues…. So i don’t know what else i can check…
Thank you
DavideMay 19, 2022 at 9:59 am #1352271The 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.
ThanksDavide
May 19, 2022 at 1:45 pm #1352309Hi 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,
NikkoMay 19, 2022 at 1:49 pm #1352315Hello, 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.
May 21, 2022 at 5:51 pm #1352501Hi 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,
NikkoMay 21, 2022 at 6:25 pm #1352503Already 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
May 21, 2022 at 6:31 pm #1352506Hi 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,
NikkoMay 21, 2022 at 6:35 pm #1352507Ok, i will try in a copy of the website. Thank you.
DavideMay 22, 2022 at 1:19 am #1352517Hi Davide,
You’re welcome :)
Just let us know how it goes.Best regards,
Nikko -
This topic was modified 2 years, 11 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.