URL rewriting, PHP templating and the $_GET array
问题 I have an index.php file in the top level with other files such as "login.php", "register.php" in a folder called includes. The folder hierarchy looks like this: index.php includes/ register.php login.php css/ style.css images/ image.png How can I set the url to something like http://www.mydomain.com/register which then from within the index.php page calls (includes) the register.php page? Is this the best way to go about it? Thanks Mike 回答1: If your server is Apache: Create on root folder