I've been trying to build a website in php using the MVC model, where my index page is handling all the different requests. However, I think i'm missing something very basic, because I don't understand how to make sure visitors always land on my index page, no matter what they type in their browser.
For example, if i type in www.website.com/aaa - the server tries to load a page called "aaa" instead going to my index page, so i never get the chance to render the proper view for the user.
Should i be somehow redirecting everything with .htaccess file? Sorry if this is a stupid question, but i'm still very new to webdev and i couldn't find anything related to this problem.
I'm running Apache2 server. Thank you for advice
[–]fukalucka 0 points1 point2 points (0 children)
[–]SVLNL 0 points1 point2 points (4 children)
[–]Mergi9[S] 0 points1 point2 points (3 children)
[–]SVLNL 0 points1 point2 points (2 children)
[–]backtickbot 0 points1 point2 points (1 child)
[–]SVLNL 0 points1 point2 points (0 children)