PDA

View Full Version : Redirection



Leet
26-03-2006, 02:12 PM
Hey i'm using the cpanel password lock thing so that if users enter the wrong info it goes to the 401.htm page

however i want to have the code to redirect it so it goes to public_html/401/index.htm

the reason is because when it goes to it theres images on there and it keeps asking for login user and pass.

the reason i need this is because it's a new project im working on;'D

D3stroyer
26-03-2006, 02:18 PM
If you mean the redirection code it's..

<?php header("Location: http://www.yoursite.com"); ?>



Daza

nets
26-03-2006, 03:02 PM
Does it allow you to enter HTML? If so you could put this into the wrong password message, and it should redirect the user.


<script tyep="text/JavaScript">
<!--Begin
document.location.href = 'page.htm';
//-->
</script>

Splinter
26-03-2006, 03:06 PM
Just thought I would correct you to make me feel good :P


<script type="text/JavaScript">
<!--Begin
document.location.href = 'page.htm';
//-->
</script>

nets
26-03-2006, 03:56 PM
What did I tyep wrong? Lol

Want to hide these adverts? Register an account for free!