1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Cpanel error pages question + reep

Discussion in 'Site & Server Administration' started by Nilgesz, May 27, 2007.

  1. #1
    Just a question

    What code I have to insert to my hostgator cpanel to make all my sites redirect to home page when somebody entered/came to wrong url or hostgator error pages unique and uneditable? Thanks
     
    Nilgesz, May 27, 2007 IP
  2. rennick

    rennick Peon

    Messages:
    85
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Here's what I use:

    ErrorDocument 404 /index.html
    Code (markup):
     
    rennick, May 27, 2007 IP
    Nilgesz likes this.
  3. Nilgesz

    Nilgesz Well-Known Member

    Messages:
    2,039
    Likes Received:
    139
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Is not working for me:(
     
    Nilgesz, May 27, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do you have index.html ?
     
    agnivo007, May 27, 2007 IP
  5. Nilgesz

    Nilgesz Well-Known Member

    Messages:
    2,039
    Likes Received:
    139
    Best Answers:
    0
    Trophy Points:
    160
    #5
    Yes I have
     
    Nilgesz, May 27, 2007 IP
  6. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Try this in your .htaccess :

    ErrorDocument 404 index.html
     
    agnivo007, May 27, 2007 IP
    Nilgesz likes this.
  7. inworx

    inworx Peon

    Messages:
    4,860
    Likes Received:
    201
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I guess he tried it in redirects or anywhere else...:confused:
     
    inworx, May 28, 2007 IP
    Nilgesz likes this.
  8. Nilgesz

    Nilgesz Well-Known Member

    Messages:
    2,039
    Likes Received:
    139
    Best Answers:
    0
    Trophy Points:
    160
    #8
    Thank You guys. I tried rennick's solution but i pasted the conde in cpanel error pages section and doesnot worked. But when agno007 said to put in htaccess then worked fine so Thanks!
     
    Nilgesz, May 28, 2007 IP