htaccess problem. Please Help!

Discussion in 'Apache' started by zealot777, Apr 21, 2010.

  1. #1
    Hi, Can somebody check what's wrong with my htaccess?

    
    <IfModule mod_rewrite.c>
    ErrorDocument 401 /test_blog2/index.php
    ErrorDocument 403 /test_blog2/index.php
    ErrorDocument 404 /test_blog2/index.php
    ErrorDocument 500 /test_blog2/index.php
    
    RewriteEngine On
    RewriteBase /test_blog2/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^search/([^/\.]+)/?$ /test_blog2/index.php?make=$1 [L]
    RewriteRule ^search/([^/\.]+)/([^/\.]+)/?$ /test_blog2/index.php?make=$1&model=$2 [L]
    RewriteRule . /test_blog2/index.php [L]
    
    </IfModule>
    
    Code (markup):
    If I remove this line "RewriteRule . /test_blog2/index.php [L]". It works fine but I really need that line so I can't just remove that. Can somebody help me how to add that line without getting any error?

    Below is the error I'm getting:
    Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
     
    zealot777, Apr 21, 2010 IP
  2. TomDeLonge

    TomDeLonge Peon

    Messages:
    119
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try RewriteRule ^(.*)$ /test_blog2/index.php [L] instead RewriteRule . /test_blog2/index.php [L]
     
    TomDeLonge, Apr 22, 2010 IP
  3. zealot777

    zealot777 Peon

    Messages:
    448
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just tried that but I'm still getting the same error :( Thanks for trying to help.

    Can somebody help me on this? Thanks!
     
    zealot777, Apr 22, 2010 IP