Topic: How to redirect the page? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=27189" title="Pages that link to Topic: How to redirect the page? (Page 1 of 1)" rel="nofollow" >Topic: How to redirect the page? <span class="small">(Page 1 of 1)</span>\

 
jatin_grover
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Dec 2005

posted posted 12-21-2005 13:49

If I open the page on my website http://xy/update.html it asks the password and opens http://xy/update/enterpin.html if the password is correct
But I can directly also open the page http://xy/update/enterpin.html
I want the page to redirect to http://xy/update.html if I open it directly and then open by entering the password only.
Please tell me how to do the task?

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 12-21-2005 14:10

In Javascript?
Not at all.

I suggest you read up on basic http authentication - one of the few secure ways to password protect your pages.
(The alternative would be to use a server side language like PHP to authenticate the user and only output the content if the username & password matched - but since your files end in .html I guess that's not what you want)

so long,

->Tyberius Prime

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 12-21-2005 18:57

This tutorial at the Gurus Network may come in handy -

http://www.gurusnetwork.com/tutorial/htaccess/



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu