Redirect URL
Moderator: General Moderators
Redirect URL
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
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");
?>