Hi there everyone,
I'm making a site on my localhost and i would like to know if the way that i'm grabbing my php pages are valid or not.
inside my index.php there is the basic html tags but inside the body tags i have a if statement to check if there is a "page" variable set in the url and if there is then a function runs to see what page is selected.
The function itself check to see if the actual php file exists and if it does the file is included in the body of the index page, now my question is - is this a valid way to dynamically load in content pages?
I have a .htaccess file that rewrites the urls to be more user friendly it changes the index.php?page=somepage to /somepage.
As i understand it google reads the url to understand where it is on your site.
Am i totally missing something or is this way of getting php file valid?
Thanks for reading this,any help will be great.