nadz Posted August 9, 2007 Share Posted August 9, 2007 the title says it all really, im developing a website and using the same template throughout the site, ive ended up making about 6 html files so far, is there anyway i can change the links to each of the page like in the title. so instead of going to http://mysite.com/pagename.htm i can use http://mysite.com/index.php?page=pagename any help would be appreciated Link to comment https://forums.phpfreaks.com/topic/64095-solved-change-from-filehtml-to-indexphppagefile/ Share on other sites More sharing options...
lemmin Posted August 9, 2007 Share Posted August 9, 2007 if (array_key_exists("page", $_GET)) echo file_get_contents($_GET["page"] . ".htm"); Link to comment https://forums.phpfreaks.com/topic/64095-solved-change-from-filehtml-to-indexphppagefile/#findComment-319413 Share on other sites More sharing options...
nadz Posted August 9, 2007 Author Share Posted August 9, 2007 thanks alot, that worked perfectly. Link to comment https://forums.phpfreaks.com/topic/64095-solved-change-from-filehtml-to-indexphppagefile/#findComment-319436 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.