Advertisement

12.16.2006 at 05:08PM PST, ID: 22095698
[x]
Attachment Details

Linux Apache HTML http://username:password@domain.com/   syntax for protected page access via URLs

Asked by willsherwood in Apache Web Server

Tags: syntax, username

(This may or may not be the right category for this question)

IE6 introduced a restriction that disallows using the     user:pass@domain.com/resource     syntax to access  .htaccess-protected pages.

I have a client's web site that needs to transfer (redirect)  to a page on another of his sites using a "constructed" URL of this syntax.
(This is not a security risk/concern since the protection is only there in order to get his customers to send their email address so he can have a closed loop for verifying that he has a correct email address before they access his pages, and the pages are not at all secret)

Anyway, I'm looking for a server-side way to redirect where the user goes after they click on a form's SUBMIT.
Or somehow launder the URL to get access and then send them there without the user:pass@  syntax.
Originally, this was a simple client-side javascript concatenation (to construct the user:pass@ syntax) that worked fine until the IE6 restriction.
I cannot use PHP header( Refresh) since that goes thru IE in order to point the browser to the new site.
(fwiw, i have examples of both javascript and PHP solutions that still work fine on firefox, etc.)

Any thoughts about somehow getting a link to go to the protected page (which by the way is not up for editing, so we're stuck with htaccess protection)

thanks
willStart Free Trial
[+][-]12.17.2006 at 01:17PM PST, ID: 18155596

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.17.2006 at 03:09PM PST, ID: 18155852

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.18.2006 at 01:32PM PST, ID: 18161786

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Apache Web Server
Tags: syntax, username
Sign Up Now!
Solution Provided By: HackneyCab
Participating Experts: 2
Solution Grade: B
 
 
[+][-]01.03.2007 at 07:43AM PST, ID: 18235937

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.03.2007 at 08:13AM PST, ID: 18236272

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.11.2007 at 04:07PM PDT, ID: 18698755

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32