My website is hosted successfully on AWS ec2 Instance but while visiting a website other than the home page it shows me a 404 page Not found, But if I add index.php in the URL it starts working something like this:
example.com/about-us =>404 PAGE NOT FOUND
example.com/index.php/about-us => WORKING FINE
I have added some code in the .htaccess file but still no change in the flow, it was working for other server but not on AWS Linux server.
Please help me out
- 8 months ago
Add this code in the htaccess file and follow given below steps:
<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] </IfModule>
Steps to remove index.php from url on Amazon-ec2 AMI (instance only)
- 8 months ago
Add this code in the htaccess file and follow given below steps:
<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] </IfModule>
Steps to remove index.php from url on Amazon-ec2 AMI (instance only)
Goal Ploy - Money Management App