Page 12 of 26 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ... LastLast
Results 166 to 180 of 376
Like Tree7Likes

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

This is a discussion on Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it. within the Member Articles forums, part of the Focus on Members category; Actualy I only asked cause I was going to use that script above to block the adsense ads from displaying ...

  1. #166
    Senior Member
    Real Name
    CommanderTalk.com
    Join Date
    Jun 2007
    Location
    Arizona
    Posts
    372
    Liked
    2 times
    Actualy I only asked cause I was going to use that script above to block the adsense ads from displaying on my 404 page.

    So is it cool to do that?
    CommanderTalk.com --> www.commandertalk.com

  2. #167
    Junior Member
    Real Name
    Ivor Bigun
    Join Date
    Jan 2009
    Posts
    10
    Liked
    0 times
    Damn, I can usually get stuff to work but not this.

    Create custom_404 - check
    Create 404.php - check
    Enter path in vBSEO CP - check

    My 404.php is at /forum/404.php and that's the path I specified but I get a blank page:

    http://www.hostnexus.com/forum/llhjkhjhjk

    I have a different 404.php in the site root and I don't really want a forum 404 page as a site-wide 404. I have the site wide 404.php working via .htaccess:

    http://www.hostnexus.com/lll

    Any ideas?

  3. #168
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    TeryxHQ,

    you can try this instead, to affect 404 pages *only*:
    HTML Code:
    <if condition="$_REQUEST['do'] != '404'">
    #your adsense code#
    </if>
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


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

    please try to specify the for Custom 404 handler either "404.php" or full name, including path, similar to:
    Code:
    /home/site/public_html/forum/404.php
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #170
    Junior Member
    Real Name
    Ivor Bigun
    Join Date
    Jan 2009
    Posts
    10
    Liked
    0 times
    In vBSEO I have the path:

    /home/httpd/vhosts/hostnexus.com/httpdocs/forum/404.php

    (which is correct for Plesk systems)

  6. #171
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    It seems to work correctly for me now: http://www.hostnexus.com/forum/llhjkhjhjk
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  7. #172
    Junior Member
    Real Name
    Ivor Bigun
    Join Date
    Jan 2009
    Posts
    10
    Liked
    0 times
    Indded, how bizarre. Earlier on this thread someone had this exact same behaviour. Maybe a cache thing or something. Happy though.

  8. #173
    Junior Member
    Real Name
    Bruce
    Join Date
    Mar 2009
    Posts
    16
    Liked
    0 times
    Quote Originally Posted by Keith Cohen View Post
    Then, in your vBSEO Control Panel, for the "File Not Found" requests handling? setting, enter the following. Again, you will need to customize this to point to the actual physical location of the 404.php file that you created in the previous step.
    Code:
    /usr/home/username/public_html/404.php
    Ok I am either too tired or plain stupid... where do I find this setting?

  9. #174
    Senior Member Shadab's Avatar
    Real Name
    Shadab
    Join Date
    Oct 2007
    Location
    Bhopal
    Posts
    821
    Liked
    0 times
    Blog Entries
    12
    Quote Originally Posted by Chips View Post
    Ok I am either too tired or plain stupid... where do I find this setting?
    vBSEOCP » General Settings » vBSEO Options » "File Not Found" requests handling?

  10. #175
    Member
    Real Name
    Aaron
    Join Date
    Apr 2009
    Posts
    36
    Liked
    0 times
    Just setup this and having a slight problem. :/ When going to my 404 page this happens.
    http://cybersteroids.com/404.php

    PHP Code:
    Warning:  require_once(./global.php) [function.require-once]: failed to open streamNo such file or directory in /home/anithaxe/public_html/forums/misc.php on line 88

    Fatal error
    :  require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php'in /home/anithaxe/public_html/forums/misc.php on line 88 

  11. #176
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You should create 404.php in forums/ folder, not in domain root (and update "4040 handler" filename in vBSEO CP correspondingly).
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  12. #177
    Member
    Real Name
    Richie
    Join Date
    Jan 2009
    Posts
    67
    Liked
    0 times
    Quote Originally Posted by exceem View Post
    Any way to code this so it only does this for un-registered members? when registered members view a error page with this code enabled, and the navbar is visible, it makes them think they are loged out.
    I too am having the 'unknown location' issuse for members.

  13. #178
    Senior Member
    Real Name
    djbaxter
    Join Date
    Mar 2009
    Posts
    176
    Liked
    6 times
    Quote Originally Posted by paintballer.ie View Post
    I too am having the 'unknown location' issuse for members.
    The answer is here: http://www.vbulletin.com/forum/showt...known+location

    Add the following line near the top of your .htaccess file:

    PHP Code:
    ErrorDocument 404 /404.php 
    edit: That doesn't seem to resolve the issue.

    I still see

    Unknown Location
    /vmoods/images/none.gif
    for members who do not have a mood selected in the vMoods add-on.
    Last edited by djbaxter; 04-06-2009 at 02:06 PM.

  14. #179
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    To avoid regustering "not found" requests in who is online list you should apply this fix: Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  15. #180
    Senior Member
    Real Name
    djbaxter
    Join Date
    Mar 2009
    Posts
    176
    Liked
    6 times
    Quote Originally Posted by BamaStangGuy View Post
    Everyone that uses this should add:
    PHP Code:
    define('SKIP_SESSIONCREATE'1); 
    to the top of their 404 file so that vBulletin doesn't track your 404 errors in whos online.
    Doing this will make it appear to any logged in members who arrive at the 404 page that they have been logged out, although that obviously is not the case.

Page 12 of 26 FirstFirst 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ... LastLast

LinkBacks (?)


Tags for this Thread

Posting Permissions

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