Results 1 to 6 of 6

Blog rewrite error 500 with CRR blogs.php => /blogs/

This is a discussion on Blog rewrite error 500 with CRR blogs.php => /blogs/ within the Bug Reporting forums, part of the vBSEO SEO Plugin category; I have found this bug looking ta my php_log file I have found this Code: PHP Warning: require(/<homepath>/forums/best-blog.php) [<a href='function.require'>function.require</a>]: ...

  1. #1
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times

    Blog rewrite error 500 with CRR blogs.php => /blogs/

    I have found this bug looking ta my php_log file I have found this

    Code:
    PHP Warning:  require(/<homepath>/forums/best-blog.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /<homepath>/forums/vbseo.php on line 1128
    [24-Dec-2007 10:28:24] PHP Fatal error:  require() [<a href='function.require'>function.require</a>]: Failed opening required '/<homepath>/forums/best-blog.php' (include_path='.:/usr/share/pear:/usr/share/php') in /<homepath>/forums/vbseo.php on line 1128
    so I have been searching then in my lighttpd access log what link contains best-blogs and I find this spider bot querie:

    Code:
    66.249.70.177 website.com - [23/Dec/2007:19:32:00 -0500] "GET /forums/blogs/best-blogs/ HTTP/1.1" 500 0 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
    So when I test by clicking manually within Firefox the "Best-Blog" link it appears to work without returning the error 500 but when I'm trying to access it with the full url in my browser like

    Code:
    http://website.com/forums/blogs/best-blogs/
    I get a blank page, error 500 and the php_log mentionned previously is created

    I have tested removing my custorm rewrite 'blog\.php$' => 'blogs/[NF]' , then no more bugs

    Looks like it doesnt happen on vbseo.com however on another site I have found exactly the same bug, check here:

    http://forum.vbulletinsetup.com/blogs/best-blogs/

    blank page , error 500


    Hope it helps

  2. #2
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    is it possible to know how did your write your blog.php CRR for vbseo.com ? because I see it not buggus here

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

    try to change CRR to:
    Code:
    '^blog\.php$' => 'blogs/'
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  4. #4
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello,

    try to change CRR to:
    Code:
    '^blog\.php$' => 'blogs/'
    not working if I do this with the ^ then the navbar link blog.php is not rewritten to blogs/

  5. #5
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    to note that project.php and blog.php of project tools and vb blogs are the 2 only files I cant custom rewrite with the ^, all others vb files rewrite went fine without both project and blog ...
    Im able to do theses rewrites for example and they are ok:

    '^faq\.php$' => 'faq/[NF]'

    '^search\.php\?do=getnew$' => 'newposts/[NF]'

    '^search\.php$' => 'search/[NF]'

    but for both blog.php and project.php I must remove the ^ else when I mouseover the links , it's still pointing to the php file ..

  6. #6
    Senior Member
    Real Name
    A.D
    Join Date
    Oct 2007
    Location
    France
    Posts
    159
    Liked
    0 times
    ok found the thing that is because blog and pj tools has their own navbar templates and it wasnt wrote properly in here.

Similar Threads

  1. change /forums/blogs to /blogs
    By magmf in forum URL Rewrite Settings
    Replies: 31
    Last Post: 02-08-2008, 11:20 AM
  2. How to get /blogs instead of /forum/blogs
    By Doug Nelson in forum General Discussion
    Replies: 2
    Last Post: 11-20-2007, 01:04 AM
  3. /blogs/index.php loads /forums/blog.php
    By voteforbird in forum Custom Rewrite Rules
    Replies: 3
    Last Post: 09-20-2006, 06:08 PM

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
  •