Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

how to redirect to a given page when .htacess authentifica..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
htacess and user not found ! - hi ! ..htacces doesn't work ! I give the name and password, but i don't have access to the /webtest directory In i can see : [error] user yannick not found : /webtest In I've added :

redirect - Hi , I have apache in my win2000 for server web with +/- 60 sites. I must set config for this : All people that connect to my fixed ip to external must redirect to dir : /public/ Only the local pc can navigate inside all server dir ??? Thks

Problem to redirect - Hello, have a litle problem here, and i can't solve it myself :-( Server 1: Apache 1.3.26 Server 2: Apache 2.0.46 for In the Intranet i can use Server 2 via and the

redirect php link - hi how can i redirect a php link example: ru redirect to there is a content on but i need a serious link like this..

Redirect permanent? - Would this work as a redirect? Redirect permanent Or should I just leave apache to give 405 errors? -- del 8-)
Next:  Apache: Fehlermeldung bei Variable  
Author Message
frederes1

External


Since: Oct 02, 2003
Posts: 2



(Msg. 1) Posted: Thu Oct 02, 2003 7:41 pm
Post subject: how to redirect to a given page when .htacess authentification fails ?
Archived from groups: alt>apache>configuration (more info?)

Hi,

how to redirect to a given page when .htacess authentification fails ?

Here is my .htacess :

ErrorDocument 401 http://www.mydomain/authFailure.php

AuthUserFile /home/mydomain/.htpasswd
AuthName "Admin"
AuthType Basic

<limit GET POST>
require valid-user
</limit>

What's wrong with this ??

thanks for your help

regards,

Fred

 >> Stay informed about: how to redirect to a given page when .htacess authentifica.. 
Back to top
Login to vote
user2431

External


Since: Aug 21, 2003
Posts: 23



(Msg. 2) Posted: Thu Oct 02, 2003 8:16 pm
Post subject: Re: how to redirect to a given page when .htacess authentification fails ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Frederes" <frederes DeleteThis @free.fr> escribió en el mensaje
news:blhdef$jot$1@news-reader5.wanadoo.fr...
<font color=purple> > ErrorDocument 401 <a style='text-decoration: underline;' href="http://www.mydomain/authFailure.php</font" target="_blank">http://www.mydomain/authFailure.php</font</a>>

I suggest you use ErrorDocument 401 /authFailure.php instead, given that
error page belongs to the same domain.

 > What's wrong with this ??

First of all, in order to use ErrorDocument you need an AllowOverride
FileInfo directive. Secondly, you have to realize that if you don't get
access to <a style='text-decoration: underline;' href="http://www.mydomain" target="_blank">http://www.mydomain</a> that includes *any* document inside, including
/authFailure.php<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: how to redirect to a given page when .htacess authentifica.. 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]