I have the following .htaccess file:AddDefaultCharset utf-8RewriteEngine onOptions +SymLinksIfOwnerMatchRewriteBase /# redirect all www-requests to no-www# -RewriteCond %{HTTP_HOST} ^www\.site\.com$ [NC]RewriteRule ^(.*)$ http://site.com/$1 [R=301,L]# redirect all home pages to / (root)# -RewriteCond %{THE_REQUEST} ^.*/index\.(php|html?)RewriteRule ^(.*)index\.(php|html?)$ /$1 [R=301,L] # remove trailing slash from dirs# -RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)/$ /$1 [R=301,L]# automatically add index.php when needed# -RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond $1 !^(index\.php|login\.php|reg\.php|robots\.txt|css/|js/)RewriteRule ^(.*)$ /index.php [L]The .htaccess file should do the following (for SEO):Conversion to no-www (http://www.site.com should become http://site.com)All URIs with trailing slashes should convert to no-trailing-slash: http://site.com/me/ should be redirected http://site.com/meAll URIs with index.php/index.html should convert to just nothing: http://site.com/admin/index.php or http://site.com/admin/ should be eventually displayed as http://site.com However the current version of .htaccess results in a cyclic redirection when trying to access (http://site.com/admin). The real document that should be fetched by browser is http://site.com/admin/index.php.Can anyone please help me with this issue?
Cyclic redirection in .htaccess
seo;htaccess;301 redirect