Recursive Redirect Help

Discussion in 'Apache' started by kajol, Mar 11, 2012.

  1. #1
    Please help me anyone, I have the below code in my .htaccess file, but It's giving Internal Server Error. When looking into the log, I got "Recursive Redirect" problem.

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
    
        #RewriteCond %{REQUEST_URI} /index\.php
        #RewriteRule ^(.*)index\.php$ http://%{HTTP_HOST}/$1 [R=301,L]
    
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_URI} !\.(gif|jpg|jpeg|png|ico|css|js|swf)$ [NC]
        RewriteRule ^(.*)$ index.php/$1 [PT,L]
    </IfModule>
    Code (markup):

    Thanks in advance.
     
    kajol, Mar 11, 2012 IP