Results 1 to 7 of 7

Custom 404 page

This is a discussion on Custom 404 page within the General Discussion forums, part of the vBSEO SEO Plugin category; I tried to follow the instruction here to create a custom 404 page: http://www.vbseo.com/f34/create-cust...seo-use-11288/ After following the instructions, when I ...

  1. #1
    Junior Member
    Real Name
    Marc Dagenais
    Join Date
    Jun 2008
    Posts
    23
    Liked
    0 times

    Custom 404 page

    I tried to follow the instruction here to create a custom 404 page:

    Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it.

    After following the instructions, when I try it, here is what I get:


    Warning: include(/usr/home/dfp/public_html/404.php ) [function.include]: failed to open stream: No such file or directory in /home/dfp/public_html/vbseo.php on line 1446

    Warning: include() [function.include]: Failed opening '/usr/home/dfp/public_html/404.php ' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dfp/public_html/vbseo.php on line 1446

    What's wrong ? What is missing?

    I am not a programmer and don't know PHP so please be simple in explaining it.

    Thank you.

    Marc

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    did you actually create the 404.php script as the post describes?

  3. #3
    Junior Member
    Real Name
    Marc Dagenais
    Join Date
    Jun 2008
    Posts
    23
    Liked
    0 times
    Yes, I created the 404.php file.. and it is in public_html folder with this code in it

    <?php
    header("HTTP/1.0 404 Not Found");
    header("Status: 404 Not Found");
    $_GET['do']='page';
    $_REQUEST['do']='page';
    $_GET['template']='404';
    $_REQUEST['template']='404';
    define('VBSEO_PREPROCESSED', 1);
    include '/usr/home/dfp/public_html/misc.php';
    ?>


    the dfp is the actual username on the server .

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    edit.
    your error tells me what i need... lol

    remove the '/usr' form the prefix. you are only in /home



    include '/usr/home/dfp/public_html/misc.php';
    should be
    include '/home/dfp/public_html/misc.php';

  5. #5
    Junior Member
    Real Name
    Marc Dagenais
    Join Date
    Jun 2008
    Posts
    23
    Liked
    0 times
    Ok.. I fixed what you said in the 404.php and changed it to...

    <?php
    header("HTTP/1.0 404 Not Found");
    header("Status: 404 Not Found");
    $_GET['do']='page';
    $_REQUEST['do']='page';
    $_GET['template']='404';
    $_REQUEST['template']='404';
    define('VBSEO_PREPROCESSED', 1);
    include '/home/dfp/public_html/misc.php';
    ?>


    And I changed it to this in the VBSEO custom script box:

    /home/dfp/public_html/404.php


    But I still get this...



    Warning: include(/home/dfp/public_html/404.php ) [function.include]: failed to open stream: No such file or directory in /home/dfp/public_html/vbseo.php on line 1446

    Warning: include() [function.include]: Failed opening '/home/dfp/public_html/404.php ' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dfp/public_html/vbseo.php on line 1446

    Am I missing something?

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Looks like you have an extra space character at the end of filename setting, you should remove it.

  7. #7
    Junior Member
    Real Name
    Marc Dagenais
    Join Date
    Jun 2008
    Posts
    23
    Liked
    0 times
    Solved! Little things sometimes.. Thank you very much.

Similar Threads

  1. Replies: 380
    Last Post: 05-16-2012, 04:06 PM
  2. Custom 404 page?
    By LuckyStrike in forum Troubleshooting
    Replies: 2
    Last Post: 02-29-2008, 01:46 PM
  3. Custom page using the wrong URLs
    By randb in forum Troubleshooting
    Replies: 4
    Last Post: 11-08-2007, 06:26 PM
  4. Custom page
    By Fork in forum Custom Rewrite Rules
    Replies: 2
    Last Post: 02-05-2007, 02:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •