Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By Brian Cummiskey

"File Not Found" requests handling?

This is a discussion on "File Not Found" requests handling? within the Troubleshooting forums, part of the vBSEO SEO Plugin category; In trying to get a custom code working on the " File Not Found" requests handling?" under general settings, I'm ...

  1. #1
    Member
    Real Name
    Mark Parrish
    Join Date
    Jul 2007
    Location
    Portland, OR
    Posts
    45
    Liked
    0 times

    "File Not Found" requests handling?

    In trying to get a custom code working on the "File Not Found" requests handling?" under general settings, I'm getting the following errors.

    I tested the other two options and they work fine.

    Code:
    [Wed Feb 01 07:28:30 2012] [error] [client 207.46.204.188] PHP Warning:  include(): Failed opening '/home/www/hotcouponworld.com/forums/view.php?pg=lostpage' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/www/hotcouponworld.com/forums/vbseo.php on line 1365
    [Wed Feb 01 07:28:45 2012] [error] [client 76.115.39.19] PHP Warning:  include(/home/www/hotcouponworld.com/forums/view.php?pg=lostpage): failed to open stream: No such file or directory in /home/www/hotcouponworld.com/forums/vbseo.php on line 1365, referer: http://www.hotcouponworld.com/forums/target/228387-target-clearance-huggies-pull-ups-16-98-a.htm
    [Wed Feb 01 07:28:45 2012] [error] [client 76.115.39.19] PHP Warning:  include(): Failed opening '/home/www/hotcouponworld.com/forums/view.php?pg=lostpage' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/www/hotcouponworld.com/forums/vbseo.php on line 1365, referer: http://www.hotcouponworld.com/forums/target/228387-target-clearance-huggies-pull-ups-16-98-a.htm
    [Wed Feb 01 07:28:49 2012] [error] [client 76.115.39.19] PHP Warning:  include(/home/www/hotcouponworld.com/forums/view.php?pg=lostpage): failed to open stream: No such file or directory in /home/www/hotcouponworld.com/forums/vbseo.php on line 1365, referer: http://www.hotcouponworld.com/forums/target/228387-target-clearance-huggies-pull-ups-16-98-a.htm
    [Wed Feb 01 07:28:49 2012] [error] [client 76.115.39.19] PHP Warning:  include(): Failed opening '/home/www/hotcouponworld.com/forums/view.php?pg=lostpage' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/www/hotcouponworld.com/forums/vbseo.php on line 1365, referer: http://www.hotcouponworld.com/forums/target/228387-target-clearance-huggies-pull-ups-16-98-a.htm
    [Wed Feb 01 07:28:56 2012] [error] [client 157.55.16.229] PHP Warning:  include(/home/www/hotcouponworld.com/forums/view.php?pg=lostpage): failed to open stream: No such file or directory in /home/www/hotcouponworld.com/forums/vbseo.php on line 1365
    [Wed Feb 01 07:28:56 2012] [error] [client 157.55.16.229] PHP Warning:  include(): Failed opening '/home/www/hotcouponworld.com/forums/view.php?pg=lostpage' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/www/hotcouponworld.com/forums/vbseo.php on line 1365
    Mark

  2. #2
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hi Mark,

    My belief is that vBSEO does not read custom variables from a PHP page for security purposes in this setting. I'm not quite sure about that though, so that I'm bringing this thread to Oleg's attention for better assistance.

    Please hold.
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  3. #3
    Member
    Real Name
    Mark Parrish
    Join Date
    Jul 2007
    Location
    Portland, OR
    Posts
    45
    Liked
    0 times
    Thanks, I was also trying to put it into htaccess like so -

    ErrorDocument 404 Lost Page

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    the path in Custom handler can include the file name only, not the URL, like:
    /home/www/domain.com/forums/view.php

  5. #5
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    If

    view.php?pg=lostpage
    is your vbadvanced page,

    you should make a generic CRR for all of these like:

    '^view\.php\?pg=(.*)?$' => 'view/$1/'

    and then you can use

    /home/www/domain.com/forums/view/lostpage/

    as your 404 url in the settings

  6. #6
    Member
    Real Name
    Mark Parrish
    Join Date
    Jul 2007
    Location
    Portland, OR
    Posts
    45
    Liked
    0 times
    Brillant!

    Thanks,
    Mark

Similar Threads

  1. Replies: 4
    Last Post: 08-11-2011, 07:24 PM
  2. vBulletin 4.x How can I completely DISABLE the "File Not Found" requests handling?
    By Budget101 in forum Troubleshooting
    Replies: 4
    Last Post: 06-23-2010, 08:21 PM
  3. "File Not Found" requests handling? - Whats the best option?
    By Martyn in forum General Discussion
    Replies: 3
    Last Post: 07-14-2009, 07:03 PM
  4. Replies: 12
    Last Post: 07-13-2008, 11:25 AM
  5. "File Not Found" requests handling
    By xb_ in forum Bug Reporting
    Replies: 2
    Last Post: 09-26-2005, 08:39 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
  •