Results 1 to 3 of 3

Custom 404 Not Being Used

This is a discussion on Custom 404 Not Being Used within the Bug Reporting forums, part of the vBSEO SEO Plugin category; Hi, Current behavior: When the FORUM URL format (and probably other formats too, please check) catches non-existent files in a ...

  1. #1
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times

    Custom 404 Not Being Used

    Hi,

    Current behavior: When the FORUM URL format (and probably other formats too, please check) catches non-existent files in a directory, vbseo.php throws an invalid forum error if the URL doesn't resolve to a forum.

    This is sometimes unwanted behavior, especially when the format is generic: /root/[forum-title]/

    We may have set our own rewrite rules for certain pages, where we want /[forum-title]/ to resolve to a forum, but /[custom-page]/ to resolve to custom page, or at least want a non-existent URL to resolve to a 404.

    It is not possible to bypass this with Custom Rewrite Rules in the AdminCP since these aren't checked until other URLs have already made the false positive.

    This can be fixed in vbseo.php by finding:
    Code:
    else
    if (isset($vbseo_arr['forum_id']))
    And replacing it with:
    Code:
    else
    if (intval($vbseo_arr['forum_id']))
    This fix would potentially remove invalid ID messages entirely, but I think it is better to have a slightly inaccurate error message, than not to be able to serve our own URLs. If we absolutely must have invalid ID messages, then I think they should only occur if the format was not generic (i.e. included the [forum_id]).

    Keep in mind that this probably applies to other URLs than just forum URLs, depending if the format only matches titles and is in the same directory as a custom page.
    - the makers of VaultWiki

  2. #2
    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
    The generic "Invalid forum specificed" error comes from vb, not vbseo. I do like this idea though, and will flag it for the developers to look at in more detail.

  3. #3
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times
    Yes, I'm aware the error comes from vBulletin, but would not have done so if vBSEO didn't pass the invalid request. Hence my point, not to pass invalid requests when the ID is invalid - vBSEO knows this before passing it off to vBulletin.
    - the makers of VaultWiki

Similar Threads

  1. Replies: 6
    Last Post: 04-13-2012, 07:03 AM
  2. Is it possible to set up custom title and custom description?
    By magnaromagna in forum General Discussion
    Replies: 8
    Last Post: 08-28-2010, 11:49 AM
  3. Custom metatags for custom pages
    By benFF in forum vBSEO Features Archive
    Replies: 0
    Last Post: 12-07-2007, 02:59 PM
  4. will pay for custom mod
    By lafsunlmtd in forum General Discussion
    Replies: 0
    Last Post: 11-08-2006, 11:08 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
  •