Actually, I went ahead and changed that, but for some reason it’[s not working like it should. When I go to just http://rpotterjr.dev it displays the 404 page instead of the home page… Wth? I never had this problem with that…
Try debugging yourself by placing echos and var_dumps on crucial places (where things might go wrong) so you know where and why things go wrong. I recommend `var_dump($page)` right before your switch since that seems to be the problem.
> Thanks goes out to BenWalker also, for contributing to solving this issue.
Not a problem at all. I’ve posted functional code that does what you describe using the site structure you posted (and a bit of guesswork as to how you build your pages). It’s kinda your call as to whether you use it or not ;-)
As for your 404 problem, the following index.php code works for me:
Could you try that out first and see if it works? It’s the same functionality as the zip file I posted, but with fewer lines of code. I feel as though I solved your problem a while back but your more recent posts indicate you haven’t really read my code.