Results 1 to 6 of 6

Thread: error pages

  1. #1
    Join Date
    Mar 2004
    Location
    zagreb
    Posts
    4

    error pages

    Is it possible to have 2 different custom error pages of a same branch (let say 401) on server?

  2. #2
    Join Date
    Dec 2002
    Location
    Prince Edward Island
    Posts
    2,289
    Yes! You can customize all your error pages to be completely different or all to be the same. I would suggest you use a combination


    John

  3. #3
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    9,072
    Quote Originally Posted by graba99
    Is it possible to have 2 different custom error pages of a same branch (let say 401) on server?
    Just a little confused, do you mean you want 2 different 404 error pages for example? Like one time it'll show one thing... then the next, the other one... all random?
    RACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca

    www.HostingSecList.com - Security Notices for the Hosting Community.

  4. #4
    Quote Originally Posted by Pat H
    Just a little confused, do you mean you want 2 different 404 error pages for example? Like one time it'll show one thing... then the next, the other one... all random?
    I think that is what he is asking, two 401 pages, each showing at different times or randomly. Is that correct OP?
    FrogJumper.com, Superb Cpanel Web Hosting.
    Excellent, High Paying Affiliate Program.

  5. #5
    Join Date
    Mar 2004
    Location
    zagreb
    Posts
    4
    Quote Originally Posted by goodydomains
    I think that is what he is asking, two 401 pages, each showing at different times or randomly. Is that correct OP?
    yes, kind of this, is it possible?

  6. #6
    You would need to send 401s to a PHP (or other language) script that prints content based on your other criteria (random, time of day, user agent, etc...)

    Something like this in your .htaccess file should do it.

    ErrorDocument 401 /error_handler.php?e=401

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •