php - How to make website pages accessed by code -
it's pretty hard explain if have better title guest..
basically made website 5 pages.
1) index.html 2) page.html 3) footer.html 4) menu.html 5) contact.html in order access pages have type page name @ end of domain (i bet knew that..)
i wanted access pages code.. example -> mywebsite.com\?page=contact how can ?
kind regards, kobi.
why don't make index.php following code:
<?php include($_get['page'].'.html'); ?> the result be:
- calling
mywebsite.com/?page=contactopenmywebsite.com/index.php?page=contactbecause default - the url stay
mywebsite.com/?page=contact - the script load file
contact.html, show it
Comments
Post a Comment