Results 1 to 5 of 5

custom rewrite rule conflict

This is a discussion on custom rewrite rule conflict within the Bug Reporting forums, part of the vBSEO SEO Plugin category; I'm getting the following errors, when opening a certain page [10-Sep-2005 18:48:21] PHP Warning: main(full-disclosure/76181-full-disclosure-multilinks-com-security-sendmessage.php): failed to open stream: No ...

  1. #1
    xb_
    xb_ is offline
    Junior Member
    Join Date
    Jul 2005
    Posts
    27
    Liked
    0 times

    custom rewrite rule conflict

    I'm getting the following errors, when opening a certain page
    [10-Sep-2005 18:48:21] PHP Warning: main(full-disclosure/76181-full-disclosure-multilinks-com-security-sendmessage.php): failed to open stream: No such file or directory in <fullpath>/vbseo.php on line 795
    [10-Sep-2005 18:48:21] PHP Warning: main(full-disclosure/76181-full-disclosure-multilinks-com-security-sendmessage.php): failed to open stream: No such file or directory in <fullpath>/vbseo.php on line 795
    [10-Sep-2005 18:48:21] PHP Fatal error: main(): Failed opening required 'full-disclosure/76181-full-disclosure-multilinks-com-security-sendmessage.php' (include_path='.:/usr/lib/php') in <fullpath>/vbseo.php on line 795
    I also found out what caused this, it's this rule:
    'sendmessage\.php' => 'contact.html'

    What it is attempting to do in the following url, it rewrites the contact.html bit, to be sendmessage.php: full-disclosure/76181-full-disclosure-multilinks-com-security-contact.html

    I think the contact.html bit should be matched starting from / instead of at the end of the url? Or perhaps both..
    Last edited by xb_; 09-10-2005 at 09:16 PM.

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

    from the RC8 announcement:
    (1) Added start (^) and end ($) regex symbols to the 'Custom Rewrite Rules' feature to correct issues with rewrite rules matching substrings of forum URLs that should not be affected.
    So, you can change your custom rewrite rule to:
    '^sendmessage\.php$' => 'contact.html'

    to have it rewritten when it match *exactly* only.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    xb_
    xb_ is offline
    Junior Member
    Join Date
    Jul 2005
    Posts
    27
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk
    So, you can change your custom rewrite rule to:
    '^sendmessage\.php$' => 'contact.html'

    to have it rewritten when it match *exactly* only.
    Yup works perfectly now .
    Thinking about it, this wasn't really a bug, more something to keep in mind when writing custom rules.

  4. #4
    Senior Member
    Real Name
    Joseph Ward
    Join Date
    Jun 2005
    Posts
    23,847
    Liked
    32 times
    Blog Entries
    9
    /* NOTE: This issue has been resolved in vBSEO RC8. */

  5. #5
    vBSEO Staff Juan Muriente's Avatar
    Real Name
    Juan Carlos Muriente
    Join Date
    Jun 2005
    Location
    Puerto Rico
    Posts
    14,267
    Liked
    558 times
    Quote Originally Posted by Joe Ward
    /* NOTE: This issue has been resolved in vBSEO RC8. */
    The last part should read "...vBSEO 2.0 Final.*/"

Similar Threads

  1. Syntax for Custom Rewrite Rules
    By Joe Ward in forum Custom Rewrite Rules
    Replies: 33
    Last Post: 02-10-2011, 09:49 PM
  2. Please help with custom rewrite rule.
    By john in forum Custom Rewrite Rules
    Replies: 7
    Last Post: 03-30-2006, 04:19 PM
  3. custom rewrite rule for html.php adapted to 3.5x
    By drex in forum Custom Rewrite Rules
    Replies: 4
    Last Post: 01-26-2006, 05:35 AM
  4. vBSEO 2.0 RC7 Released
    By Juan Muriente in forum vBSEO Announcements
    Replies: 17
    Last Post: 09-09-2005, 12:00 AM

Posting Permissions

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