Need Urgent help

Discussion in 'C#' started by parveen1989.seo, Apr 1, 2011.

  1. #1
    hi to all,

    I am doing custom 404 error pages in asp.net. I have created 404.html page. We have asp.net hosting and have plesk control panel. I have to implement custom 404 page in that. How can i do that. Give me relevent suggestion
     
    parveen1989.seo, Apr 1, 2011 IP
  2. tjsocr22

    tjsocr22 Active Member

    Messages:
    1,251
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Login to Plesk and click on the domain name you want to have a custom error page for. Now click on the "Setup" icon. Under "Services" enable the "Custom Error Documents" tick box. Then go to the error_docs/ folder on your server and edit the not_found.html document.
     
    tjsocr22, Apr 1, 2011 IP
  3. iamolm

    iamolm Peon

    Messages:
    104
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your help ..!! I had also the same problem.. but you solved out . Thanks !!

    Cheers,
    :cool:
     
    iamolm, Apr 1, 2011 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    AstarothSolutions, Apr 2, 2011 IP
  5. parveen1989.seo

    parveen1989.seo Guest

    Messages:
    102
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks for reply
     
    parveen1989.seo, Apr 4, 2011 IP
  6. bruce_robart

    bruce_robart Member

    Messages:
    547
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #6
    i am assuming that you are using II7 windows server then please Add following code in your web.config file, it will get redirect to your custom error page
     
    bruce_robart, Apr 4, 2011 IP
  7. shrikrishnatechnologies

    shrikrishnatechnologies Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Try This one

    <customErrors mode="On" defaultRedirect="~/DefaultErrorPage.htm" >
    
      <error statusCode="404" redirect="~/FileNotFound.htm"/>
    
      <error statusCode="403" redirect="~/Forbidden.htm"/>
    
    </customErrors>
    Code (markup):
     
  8. Adnan959

    Adnan959 Member

    Messages:
    894
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #8
    Create an HTACCESS file and dump this code in there.

    
    php_value register_globals 1
    RewriteEngine on
    ErrorDocument 404 http://www.yourwebsite.com/404.html
    
    Code (markup):
     
    Adnan959, Apr 6, 2011 IP
  9. parveen1989.seo

    parveen1989.seo Guest

    Messages:
    102
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I have windows server. There is web.config file there
     
    parveen1989.seo, Apr 7, 2011 IP
  10. Adnan959

    Adnan959 Member

    Messages:
    894
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #10
    I'm sure it allows you to create an HTACCESS on top of the web.config file. I've done it before.
     
    Adnan959, Apr 7, 2011 IP
  11. parveen1989.seo

    parveen1989.seo Guest

    Messages:
    102
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Our server doesn't support php. What am i write in web.config file
     
    parveen1989.seo, Apr 7, 2011 IP