Page 11 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 ... LastLast
Results 151 to 165 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; Originally Posted by briansol install vbseo Done! But now my custom 404 page no longer works. -- I take it ...

  1. #151
    Member popowich's Avatar
    Real Name
    Raymond Popowich
    Join Date
    Nov 2008
    Location
    Rochester, New York
    Posts
    40
    Liked
    0 times
    Quote Originally Posted by briansol View Post
    install vbseo
    Done! But now my custom 404 page no longer works.

    --

    I take it back. It's fixed now. I had to do the third step and give the path to my 404.php file.

    I see there are a lot of google analytics options. Does it matter if I enable those or leave my existing analytics code in the footer?

    -Raymond

  2. #152
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    i would pull the template edit and use vbseo's.

    you won't have any reverts in the footer on upgrades, plus vbseo does segmentation tracking variables as well already coded for you (and will be enchanced in the next version as well)

  3. #153
    Member
    Real Name
    ashley76
    Join Date
    Nov 2008
    Posts
    41
    Liked
    1 times
    Just tried to implement this but, when I try it out by going to some non-existant page on my website, I get this...

    Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/dccollec/public_html/forum/misc.php on line 85

    Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/local/php52/pear') in /home/dccollec/public_html/forum/misc.php on line 85

    Here is some more info as well...

    Looks like it works fine for a 404 page inside my forum directory but, outside such as http://www.dccollector.com/example I get the above error...
    Last edited by ashley76; 01-04-2009 at 04:12 PM.

  4. #154
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    Seems like the path in red you edited was incorrect.
    The Forum Hosting - Forum Hosting from the Forum Experts

  5. #155
    Member
    Real Name
    ashley76
    Join Date
    Nov 2008
    Posts
    41
    Liked
    1 times
    here is what I put in vbseo

    /home/****/public_html/404.php

    and here is what I put int he 404.php file

    /home/****/public_html/forum/misc.php

  6. #156
    Member
    Real Name
    ashley76
    Join Date
    Nov 2008
    Posts
    41
    Liked
    1 times
    Also check out my 404 page... Let me know what you think...

    http://www.dccollector.com/forum/adfadsf

    Is it a little to harsh?

  7. #157
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    I am not seeing any errors on that page. Where are you experiencing them?
    The Forum Hosting - Forum Hosting from the Forum Experts

  8. #158
    Member
    Real Name
    ashley76
    Join Date
    Nov 2008
    Posts
    41
    Liked
    1 times
    It is outside of the forum. Like if I went to http://www.dccollector.com/asdfasdf

    Anything inside the forum directory works but outside of it is the problem...

  9. #159
    Senior Member
    Real Name
    Michael Biddle
    Join Date
    Jan 2007
    Location
    Southern California
    Posts
    7,097
    Liked
    4 times
    If I am not mistaken, vBSEO only covers the 404 in directories below it, so that would not work.
    The Forum Hosting - Forum Hosting from the Forum Experts

  10. #160
    Member
    Real Name
    ashley76
    Join Date
    Nov 2008
    Posts
    41
    Liked
    1 times
    ah... Thanks for the info...

  11. #161
    Senior Member
    Real Name
    Nick Le Mouton
    Join Date
    Nov 2005
    Location
    New Zealand
    Posts
    422
    Liked
    14 times
    Is there anyway to exclude analytics from being added to these 404 pages and the invalid thread pages? It's really annoying having porn threads (which I've deleted) show up in my analytics

  12. #162
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    you could wrap your analytics with an if THIS_SCRIPT = misc conditional. It will require hard-editing of the vbseo file though

  13. #163
    Senior Member Cor van Noorloos's Avatar
    Real Name
    Cor van Noorloos
    Join Date
    Mar 2008
    Location
    Werkendam, The Netherlands
    Posts
    178
    Liked
    0 times
    Blog Entries
    1
    This might be the wrong place to ask, however I've just disabled browsing using
    Code:
    options -indexes
    
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    RewriteCond %{HTTP_HOST} !^die16-clan\.com
    RewriteRule (.*) http://die16-clan.com/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    Would it be possible to redirect people to a 404.php instead?

  14. #164
    Senior Member
    Real Name
    CommanderTalk.com
    Join Date
    Jun 2007
    Location
    Arizona
    Posts
    372
    Liked
    2 times
    Quote Originally Posted by Lowfyr View Post
    oh and btw. you can exclude adsense with this condition

    Code:
    <if condition="THIS_SCRIPT != 'misc'">
    #your adsense code#
    </if>
    but please note that this condition excludes your adsense from all misc sites.
    Please forgive my ignorance, however, what sites would be considered "misc sites"
    CommanderTalk.com --> www.commandertalk.com

  15. #165
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    misc.php runs stuff like the emoticon popup, buddylist, whoposted, and a couple other 'misc' scripts.


    using options -indexes is pretty pointless in vb, because vb comes with blank index.html files in all directories besides root, thus making them non-directory viewable.

    if you want to send them to a 404 page instead, you'll have to edit all the folders index.html files and probably do a meta refresh to 404.php, or an SSI include of 404.php

Page 11 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 ... 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
  •