.htaccess
RewriteEngine On
RewriteRule register index.php?mode=register
RewriteRule login index.php?mode=login
index.php
<?php
if ( isset ( $_GET['mode']) && ( $_GET['mode'] == 'register' ) ) {
include('includes/register.php');
} elseif ( isset ( $_GET['mode']) && ( $_GET['mode'] == 'login' ) ) {
include('includes/login.php');
}
?>
This is my current method (thanks to @TROODON).
Is there an easier way, maybe using key-value arrays to store all the possibilities for the various pages that index.php will call?
Thanks