0 votes
1 view
in AWS by (18.1k points)

I have changed the document root path from /var/www to /var/www/html/laravel/public

in the default.conf file as described at the end of the video

But now my when I open my website my homepage http://52.26.133.246/ which have ('/') shows fine but when I open my other page with routes like ('AdminApp') or you can simply click on admin link on the navbar of the home page with the whole link is http://52.26.133.246/AdminApp it says

404 page not found

and also

The requested URL /AdminApp was not found on this server.

but when I use /index.php in the URL the page is shown here is the link http://52.26.133.246/index.php/AdminApp

Also kindly check this link also to without index.php

http://52.26.133.246/welcome

with index.php

http://52.26.133.246/index.php/welcome

Kindly help me

1 Answer

0 votes
by (42.2k points)

Try sudo a2enmod rewrite and

Check your etc/httpd/conf/httpd.conf file. It should have the following in it:

AllowOverride None

change it to

AllowOverride All 

...