Say I have an /index.php and /otherpage.php, I want to have otherpage.php load when you go to http://www.mydomain.com/ rather than having /index.php load. What would I do in order to make this possible, without a redirect now, I want the index to load otherpage.php as the main page.
You can also do this: DirectoryIndex otherpage.php index.php index.html Code (markup): This way when you get rid of, or rename the otherpage.php it will default to index.php, and if index.php isn't there it will default to index.html. And of course you could keep on adding files. Your .htaccess file is in your root web directory .. ie. where you have this index.php and otherpage.php.
And just to complete this thread, It you don't want to use the .htaccess or httpd.conf files (or you don't use apache), you can use php to do a simple redirect: index.php <?php header( 'HTTP/1.1 301 Moved Permanently' ); header( 'Location: http://'.$_SERVER['HTTP_HOST'].'/startpage.php' ); ?> PHP: