Results 1 to 8 of 8

mod_rewrite errors in error.log

This is a discussion on mod_rewrite errors in error.log within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi folks! Yesterday I upgrade to vB 3.5 (from 3.0.11). Afterwards I installed vBSeo (Great Hook-System!). This all works very ...

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    17
    Liked
    0 times

    mod_rewrite errors in error.log

    Hi folks!

    Yesterday I upgrade to vB 3.5 (from 3.0.11). Afterwards I installed vBSeo (Great Hook-System!). This all works very nice.

    But I have some problems with my moved image paths.
    I always gets the following error:
    Code:
    [Tue Jan 03 18:31:13 2006] [error] [client 139.30.48.xxx] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://www.xxx.de
    I think this happens because a file doesn't exist.
    Why does www.apfeltalk.de/forum/images/professional/misc gives no 404, but instead a 500 error (with this strange mod_rewrite thing in my error log).

    With a 404 I could fix the files, but with this 500 I can't see whats missing.

    Thank you for your help

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Hello,

    the "images/" folder should not be processed by vBSEO, please try to remove it from exclusion list:

    in .htaccess file FIND:
    RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
    and REPLACE WITH:
    RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles)/

  3. #3
    Junior Member
    Join Date
    Sep 2005
    Posts
    17
    Liked
    0 times
    ok now I get a 404 - does this 404 get reported in the apache error log?
    I think not...

    But its hard for me to understand: Why remove the image path out of the exclude path? Nothing from admincp|modcp and also the images should be processed - so they are there in this statement.

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    ok now I get a 404 - does this 404 get reported in the apache error log?
    The 404 errors may be reported in your error_log (depending on your server configuration).

    Why remove the image path out of the exclude path? Nothing from admincp|modcp and also the images should be processed - so they are there in this statement.
    There must be a apache configuration issue: in this case, the problem appears when the target file doesn't exists, while it is configured to be processed directly (non-rewritten) by mod_rewrite rules.

  5. #5
    Junior Member
    Join Date
    Sep 2005
    Posts
    17
    Liked
    0 times
    There must be a apache configuration issue
    It's a standard apache httpd.conf. And I use the standard vbseo htaccess.

    Take a look at this:

    The error only occurs if somebody tries to access a file which is located in a non-existent folder.

    e.g If you call
    www.apfeltalk.de/forum/images/misc/ -->normal apache 403 forbidden
    www.apfeltalk.de/forum/images/misc/test.jpg -->normal apache 404

    this is all like it should be, but if I call
    www.apfeltalk.de/forum/images/professional --> normal 404
    www.apfeltalk.de/forum/images/professional/ --> vbseo takes it and 500 (in the error.log:
    mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.)

    and quite the same with:
    http://www.apfeltalk.de/forum/images...ional/test.jpg --> 500 - see above

    The difference is that the professional-folder is non-existent!

    So I think the vbseo-htaccess is the "problem" - perhaps you can help me.
    Thanks for your work!

  6. #6
    ADM
    ADM is offline
    Senior Member ADM's Avatar
    Real Name
    Peter Papadopoulos
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    254
    Liked
    0 times
    On mine if I do that (remove images from that line in htaccess) I get:

    http://www.alanwake.net/vb/images/misc/professional -> Normal 404
    http://www.alanwake.net/vb/images/misc/professional/ -> Invalid forum detected.

    Now the reason I say this is maybe something similar is happening on yours, but your forum style rewrite is affecting it.

    Try put a .htaccess in your images directory with the following:

    RewriteEngine Off

    and see if it still happens.

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    archimedes,

    it may be related to other apache directives in httpd.conf, like ErrorDocument, for instance.

    Please try the following modification in your .htaccess:
    FIND:
    RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
    ADD BEFORE:
    RewriteCond %{REQUEST_FILENAME} -f

  8. #8
    Junior Member house's Avatar
    Real Name
    Pavel
    Join Date
    Nov 2005
    Location
    Russia, Moscow
    Posts
    3
    Liked
    0 times
    Thanks

Similar Threads

  1. 403 and error log errors?
    By GlitterKill in forum Bug Reporting
    Replies: 6
    Last Post: 02-16-2006, 05:32 PM
  2. Periodic PHP Errors
    By ePressive in forum Troubleshooting
    Replies: 5
    Last Post: 01-01-2006, 02:08 PM
  3. Database Errors
    By Michael in forum Troubleshooting
    Replies: 11
    Last Post: 11-03-2005, 04:39 PM
  4. Database errors and problems with
    By drex in forum Bug Reporting
    Replies: 2
    Last Post: 11-02-2005, 08:02 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
  •