Monday, January 16, 2006, 5:14:49 PM, tg-php wrote:
> Should just be a matter of adding "start.php" to your defaults list in
> whatever priority order you want.

Apache's .htaccess:
DirectoryIndex start.php index.php index.html

In start.php:
// instead of redirecting, just set page
if (!isset($_GET['page'])) {
  $_GET['page'] = 'home';
}

If, for some reason you /can't/ change the directory index page, make an
index.php with this:
// again, no redirect necessary
$_GET['page'] = 'home';
require('start.php');

Steve
-- 
http://mrclay.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to