0

I uploaded my website from my UAT/Test domain to EC2 AWS. Before everything was fine, but now only home page opens.

And if I try to navigate to any other links I can't, it gives following error

The requested URL /page/company was not found on this server.

But when I insert index.php in between it works fine.

Any ideas?

Naveed Ramzan
  • 3,565
  • 3
  • 25
  • 30

3 Answers3

0

Please enable mod_rewrite module in your server and rewrite index.php in htaccess file.

0

Please check your file premissions

0

I believe the issue could be DirectoryIndex which apache (not positive that is what you are using as web server) uses to direct the user to a specific file if a directory is selected in the URL.

This can be set in your apache config if you have access, or in a .htaccess file if you only have access to the your webspace itself.

http://www.htaccess-guide.com/directoryindex-uses/

Basically with DirectoryIndex you can tell apache to automatically use index.php, or index.html, or really whatever file you want to be used when no file in a directory is given in the URL.

C Miller
  • 428
  • 2
  • 12