#1
  1. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Jul 2013
    Posts
    10
    Rep Power
    0

    How to create Custom 404 page in core PHP


    Hello Friend

    Anyone can idea about how to create Custom 404 page in core PHP. please help us.
  2. #2
  3. Seo Control Panel
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Feb 2014
    Location
    India
    Posts
    139
    Rep Power
    10
    1. Make your own custom 404 page
    2. Make an .htaccess file and place it in your root
    3. Place this line inside the .htaccess file
  4. #3
  5. No Profile Picture
    Registered User

    Join Date
    Jun 2014
    Posts
    5
    Rep Power
    0
    just edit your httpd.conf file and add this ErrorDocument 404 /pagenotfound.php
  6. #4
  7. No Profile Picture
    Newbie
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Jul 2014
    Posts
    2
    Rep Power
    0
    But how to create 404.php???
  8. #5
  9. Cool bra. Go with Christ!
    SEO Chat Mastermind (5000+ posts)

    Join Date
    Mar 2004
    Location
    Gloucester (South West UK).
    Posts
    5,979
    Rep Power
    1252
    Code:
    <?php
       header("HTTP/1.0 404 Not Found");
    ?>
    
    <html>
    <head>
    <title>Error Code 404: File not found</title>
    </head>
    <body>
    
    Error message / content goes here
    
    </body>
    </html>
    Save as 404.php, upload to server, do what seopanel said (add: ErrorDocument 404 http://www.domain.com/404.php to your .htaccess file)... That's it!
    Last edited by ClickyB; Jul 4th, 2014 at 06:05 AM. Reason: typos
    ClickyB
    "The quality of the visitor is more important than the volume".. Egol 22nd Feb 2008
    New to SEO/SeoChat?...Click Here
    Canonical Problems?... Click Here
    Forum Rules & Posting Guidelines
  10. #6
  11. No Profile Picture
    Newbie
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Jul 2014
    Posts
    2
    Rep Power
    0
    Originally Posted by ClickyB
    Code:
    <?php
       header("HTTP/1.0 404 Not Found");
    ?>
    
    <html>
    <head>
    <title>Error Code 404: File not found</title>
    </head>
    <body>
    
    Error message / content goes here
    
    </body>
    </html>
    Save as 404.php, upload to server, do what seopanel said (add: ErrorDocument 404 http://www.domain.com/404.php to your .htaccess file)... That's it!
    coding is OK, but in WordPress based website, 404.php already exists. I need to know how I can edit that page. I want to insert home page link there.
  12. #7
  13. No Profile Picture
    Banned
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Jul 2014
    Posts
    11
    Rep Power
    0
    yeah.. obsoultely i got the same, i had tried many ways to fix it but i cant and coding of this is ok but i got the error messages 404.php is already exists. please anyone can help me?

Similar Threads

  1. Create custom collages with PhotoShake! iPad app (Appolicious)
    By RSS_News_User in forum Technology News
    Replies: 0
    Last Post: May 4th, 2011, 02:03 PM
  2. How to Create Best Custom 404 Error Page for eCommerce Website?
    By khushimistry in forum Search Engine Optimization
    Replies: 0
    Last Post: Oct 25th, 2010, 03:08 AM
  3. Wanna create custom 404 page on windows server
    By mikesoboo in forum Web Design, Coding and Programming
    Replies: 5
    Last Post: Dec 30th, 2008, 09:28 AM
  4. Google lets people create custom virtual realms (AFP)
    By RSS_News_User in forum Technology News
    Replies: 0
    Last Post: Jul 9th, 2008, 05:04 AM
  5. Google lets people create custom virtual realms (AFP)
    By RSS_News_User in forum Technology News
    Replies: 0
    Last Post: Jul 9th, 2008, 03:04 AM

IMN logo majestic logo threadwatch logo seochat tools logo