If you’re just setup a new wordpress on amazon EC2 instance, after you had tried update the permalink settings from default to post name. 404 page not found display.
Solution
- SSH login to your ec2 instance
- Edit the config file, sudo nano /etc/httpd/conf/httpd.conf
- Under Directory “/var/www/html” section, change AllowOverride None to AllowOverride All
- Restart HTTPÂ server, sudo service httpd restart