Hi @josecarlosamaral,
I understand you’re encountering a 404 error when trying to create or update a product in WooCommerce. A 404 error typically indicates that the page you’re trying to access can’t be found on the server, which can be caused by various reasons. Since you mentioned you don’t have access to mod_security rules, we can start by looking into other common causes for this error.
Firstly, it’s possible that the issue might be related to the permalink settings in WordPress. WooCommerce relies on these settings to generate the correct URLs for your products and other store pages. Here’s what you can do to check and refresh your permalink settings:
- Go to your WordPress dashboard.
- Navigate to Settings > Permalinks.
- Without making any changes, click on Save Changes at the bottom of the page. This action will refresh your permalink structure.
After doing this, try creating or updating a product again to see if the error persists.
If the issue remains, it could be related to a plugin or theme conflict. To diagnose this, you can temporarily deactivate all plugins except WooCommerce and switch to a default theme like Twenty Twenty-One. If this resolves the error, reactivate each plugin one by one, and test after each activation to identify the culprit.
Another step you can take is to check the .htaccess file on your server, as a corrupt .htaccess file can also lead to 404 errors. If you’re comfortable with accessing your server files. For detailed guidance on editing the .htaccess file, you can refer to the documentation here.
Please give it a try and let us know how it goes.