Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)
edited ago by

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 (44.4k 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 

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...