htaccess quick fix.. $10 (Paypal)

Discussion in 'Programming' started by zealot777, Apr 22, 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.

    I'm paying $10 to the first one that can give the solution to me. Thanks!
     
    zealot777, Apr 22, 2010 IP
  2. BlastFree

    BlastFree Well-Known Member

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    108
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    zeallot777,

    try

    RewriteRule .* /test_blog2/index.php [L]

    Note the asterick...

    -BlastFree
     
    BlastFree, Apr 22, 2010 IP
  3. zealot777

    zealot777 Peon

    Messages:
    448
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3

    Sorry but I'm still getting an error.
     
    zealot777, Apr 22, 2010 IP
  4. easic

    easic Active Member

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Try this:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^search/([^/\.]+)/?$ /index.php?make=$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^search/([^/\.]+)/([^/\.]+)/?$ /index.php?make=$1&model=$2 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ /index.php [L]
     
    Last edited: Apr 22, 2010
    easic, Apr 22, 2010 IP
    zealot777 likes this.
  5. zealot777

    zealot777 Peon

    Messages:
    448
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Thanks! that solved my problem. money sent
     
    zealot777, Apr 22, 2010 IP