I cant find specific answer for my problem. So what I'm trying to do is to define index page by using only index.php. This is my code so far:
The issue is that you're contradicting yourself in your code. Your example reads like this: "If page is set, proceed. Then, if page is not set, include the home page, if page is gallery, then include the gallery page." Do you see the issue? The
isset() check will ensure that the code with the negation operator
! is not run.
The solution is to move that code outside of the primary