Error 404/500 not found traffic - how to redirect from reseller level

Discussion in 'Apache' started by modpeng, Nov 13, 2008.

  1. #1
    Hey guys,

    I have multiple Cpanel accs and wish to apply for all clients an Error 404/500 page redirect to a custom page.
    How can I do this?
     
    modpeng, Nov 13, 2008 IP
  2. Tropp

    Tropp Well-Known Member

    Messages:
    108
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #2
    On a reseller level all you can do is create a 404.shtml and 500.shtml file in every users public_html directory
    Unless you have root acess (which you wont) you couldn't really stop them from deleting them

    The code to redirect would be as follows for both (replace example.com with where you want to send the redirects)

    
    <html>
    <head>
    <meta http-equiv="refresh" content="0;url=http://example.com/" />
    <title></title>
    </head>
    
    
    <body bgcolor="#FFFFFF">
    
    </body>
    
    
    </html>
    
    Code (markup):
     
    Tropp, Nov 14, 2008 IP
  3. andyzzz

    andyzzz Peon

    Messages:
    226
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    But how can you create a 404.shtml and 500.shtml file in every users public_html directory automaticaly?
     
    andyzzz, Nov 14, 2008 IP