I configured a WordPress project on AWS EC2 with Ubuntu. Initially, it worked fine. then, we added a domain address to WordPress following Apache server configuration. The issue arose when the home page displayed without errors, but clicking on sub-pages resulted in a “Not Found” error, indicating that the requested URL was not found.
To address this problem, we made changes to the Apache2 configuration by executing the command a2enmod rewrite, which resolved the issue. However new problems emerged after some time. The server would occasionally go down, displaying a “403 Forbidden” error, and on the admin side, a “500 Internal Server Error” occurred. As well as the behavior varied between browsers – if the site worked in Chrome, it might not work in Firefox, and vice versa. This error persisted intermittently.
I checked the .htaccess file, file permissions, documented server configuration, error logs, and access logs disable-plugins. However, no errors were found in these logs. Despite trying various methods and attempts, the issue persists and remains unresolved