Personal secure access
Solved
t671
Posted messages
1478
Registration date
Status
Member
Last intervention
-
t671 Posted messages 1478 Registration date Status Member Last intervention -
t671 Posted messages 1478 Registration date Status Member Last intervention -
Hello,
In a secure access, a small window opens where you enter the username and password.
If you click "Cancel" on this window, you are redirected to a page hosted by the site that says: "Error 401 - Access to the resource denied."
I would like, in case of cancellation, to open a page created by myself, or go back to the previous page.
How do we do that?
Thank you.
In a secure access, a small window opens where you enter the username and password.
If you click "Cancel" on this window, you are redirected to a page hosted by the site that says: "Error 401 - Access to the resource denied."
I would like, in case of cancellation, to open a page created by myself, or go back to the previous page.
How do we do that?
Thank you.
7 answers
-
You could modify the standard HTTP error pages on the web server, but I'm not sure that's the best solution as it's global.
-
Hello,
How did you set up your secure access? Did you retrieve it? Was it there by default?
--
Setting it to resolved when it’s resolved... that’s cool too =) -
I secured my access with ".htaccess".
-
Hello,
I haven't tested it, but here might be the solution: http://sebl69.free.fr/astuces/pagesweb/index.php?page=page-erreurs-personalisees -
It indeed corresponds to what I'm looking for!
But I can't seem to get it to work properly......
In your link, it says to place a .htaccess file containing ErrorDocument 401 /401.html (or the full address leading to the html file), and the html page at the root of the site.
I tested it, and I still get the default page............. -
It is a file named .htaccess with 2 "c" containing the line:
ErrorDocument 401 /401.php
You must therefore create in the root of your site a file named 401.php that will contain your own text.
It should be noted that all 401 type errors will be redirected to this page!
--
A stupid question leads to a stupid answer!
A poorly worded question leads to a random answer! -
I succccccccccccccceeded ...................... ;o))
Thank you all !!!!!!!!
See you later