Closed Thread
Results 1 to 7 of 7

Thread: 404 Page?

  1. #1
    friendus50 is offline x10Hosting Member friendus50 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    25

    404 Page?

    I recently added my custom 404 page for my site as my site have custom domain,few days ago it automaticlly redirects to X10hosting.com's 404page which sucks! so is it an error?

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: 404 Page?

    1. Did the custom 404 ever work?
    2. Direct link to custom 404?
    3. Contents of your .htaccess ?
    Nothing is always absolutely so.

  3. #3
    friendus50 is offline x10Hosting Member friendus50 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    25

    Re: 404 Page?

    Yes it was working before recently i added some stuff in .htacces to remove .html and php extensions from pages ...so can you figure out any way to solve it?

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: 404 Page?

    If you post the contents of .htaccess file (between CODE tags), I can possibly help.
    Nothing is always absolutely so.

  5. #5
    friendus50 is offline x10Hosting Member friendus50 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    25

    Re: 404 Page?

    There's just a code to remove the ,html and .php extension! below are all code in that file!


    RewriteEngine on
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME}.html -f
    RewriteRule (.*) $1.html [L]


    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME}.php -f
    RewriteRule (.*) $1.php [L]

  6. #6
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: 404 Page?

    After that, add:

    ErrorDocument 404 /error/404.html

    where /error/404.html is the path to your error document. (in this case it is named 404.html and is located in a directory error in public_html )
    Nothing is always absolutely so.

  7. #7
    friendus50 is offline x10Hosting Member friendus50 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    25

    Re: 404 Page?

    Thanks man!!

Closed Thread

Similar Threads

  1. Replies: 0
    Last Post: 08-10-2011, 08:44 PM
  2. Replies: 2
    Last Post: 04-29-2011, 08:32 PM
  3. Main page replaced by default website page
    By yous_k66 in forum Free Hosting
    Replies: 0
    Last Post: 12-16-2010, 03:55 AM
  4. Replies: 3
    Last Post: 05-12-2009, 03:50 PM
  5. Replies: 4
    Last Post: 02-20-2008, 06:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers