Page 1 of 1

Redirect URL

Posted: Fri Oct 09, 2009 3:35 am
by fried
Stupid question. How do I set an URL i.e. Http://www.mysite/admin/ to auto-redirect to Http://www.mysite/admin/login.php. Not sure where I set this parameter. I'm using Apache, but this information must surely be independent of the server.

Re: Redirect URL

Posted: Sat Oct 10, 2009 12:29 am
by Robert07
Just make the default.php file or index.php file (just make sure there is only one of these in the webroot) with the following lines:

Code: Select all

 
<?php
header("location: login.php");
?>