Personal secure access

Solved
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.

7 answers

  1. dsy73 Posted messages 9003 Registration date   Status Contributor Last intervention   2 547
     
    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.
    0
  2. AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
     
    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 =)
    0
  3. t671 Posted messages 1478 Registration date   Status Member Last intervention   11
     
    I secured my access with ".htaccess".
    0
    1. AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
       
      I was talking about your little window that opens =)
      0
    2. t671 Posted messages 1478 Registration date   Status Member Last intervention   11
       
      Ha! But it's the default one!!!!
      0
    3. AssassinTourist Posted messages 409 Registration date   Status Contributor Last intervention   1 313
       
      Can you access the code that creates the pop-up?
      0
    4. t671 Posted messages 1478 Registration date   Status Member Last intervention   11
       
      Well no, I don't think so ....... !?
      The site is hosted by Free!
      0
  4. t671 Posted messages 1478 Registration date   Status Member Last intervention   11
     
    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.............
    0
  5. tryan44 Posted messages 1289 Registration date   Status Member Last intervention   220
     
    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!
    0
  6. t671 Posted messages 1478 Registration date   Status Member Last intervention   11
     
    I succccccccccccccceeded ...................... ;o))
    Thank you all !!!!!!!!
    See you later
    0