Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (19.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 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 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

Also kindly check this link also to without index.php

with index.php

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

0 votes
1 answer

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

Browse Categories