Jump to content

Recommended Posts

Posted

Not sure if this is correct place...

 

Been thinking that the normal Authorization required page is so boring.

 

Is it possible to change it and then add something similar in .htaccess to what i did when i made my custom 404-page?

 

404-page

 

For Authorization required, would that be

 

Am i correct or completely...? :dance:

Posted (edited)

Thomas, have you tried naming the file 401.shtml and placing it in the folder you want protected.

 

Also you don't need to add anything to the .htaccess file for this to work.

 

Also the document must be at least 512 bytes.

Edited by TCH-Bruce
Posted
Thomas, have you tried naming the file 401.shtml and placing it in the folder you want protected.

 

Also you don't need to add anything to the .htaccess file for this to work.

 

Also the document must be at least 512 bytes.

Will check that. Ive tried so many things now i dont remeber if it was placed in the staff folder i want protected.

 

Back later :)

Posted

I just put a error401.html in public_html (no subfolder) and that ErrorDocument 401 /error401.html in .htaccess and poof it started to work. Not sure what i did.

But still have the problem to have it show up when going to staff.marve.se and not marve.se/staff.

Posted (edited)

No, you shouldn't. Just a copy of the document. Well, let me rephrase that. I create the files with .shtml extensions and I don't need them. You on the other hand are using the .html extension which must be redirected.

 

Try it without a .htaccess file and see what happens. Then if that doesn't work either create a .htaccess file in that folder and add your redirect or rename the file 410.shtml.

Edited by TCH-Bruce
  • 2 weeks later...
Posted

I also get the Authorization Required page - when people try to log in to my members page with an invalid password. Here's what they see:

<

Authorization Required

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

 

Additionally, a 302 Found error was encountered while trying to use an ErrorDocument to handle the request.

>

 

I did make a new 401.shtml page, but you can only see what it says if you view source.

What I would like to do now is redirect the attemped theives to another website, and keep that within the frames of my site.

I tried doing a redirect of the 401 page, but it didn't seem to do anything at all.

 

Any suggestions?

 

übergal

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...