Question for Nintendo

Discussion in 'Apache' started by Mong, Nov 17, 2006.

  1. #1
    I know you can answer it. :)

    If any error suppose 500 Internal server error is thrown i want page to refresh one more time .. mean if any error is thrown then it should not be shown to visitor but instead internally page should be accessed once again .. in hope that contents would be available now.

    there could be any code to do this in .htaccess ? :rolleyes:
     
    Mong, Nov 17, 2006 IP
    aditya_sfs likes this.
  2. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Here is the syntax that may work: ErrorDocument 500 /yourerrorpage.html
     
    ServerUnion, Nov 17, 2006 IP
    Mong likes this.
  3. Mong

    Mong ↓↘→ horsePower

    Messages:
    4,789
    Likes Received:
    734
    Best Answers:
    0
    Trophy Points:
    235
    #3
    actually there is no error page .. i want to send one more request to same page.
     
    Mong, Nov 21, 2006 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    I'm not sure how to do request stuff, except changing URLs, and picking a page to show up when you get an error.
     
    Nintendo, Nov 21, 2006 IP
  5. Mong

    Mong ↓↘→ horsePower

    Messages:
    4,789
    Likes Received:
    734
    Best Answers:
    0
    Trophy Points:
    235
    #5
    Hmm i also not sure whether its possible or not.

    but is there anything we can do in way like

    first know error
    if its {suppose} 500
    then again goto same url {to try again}
     
    Mong, Nov 21, 2006 IP
  6. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That would case a recursive loop though.
     
    ServerUnion, Nov 21, 2006 IP