How to stop this weird auto reloading in IE

I have developed this website in PHP...

I have used htaccess to rewrite

  1. non-www urls to www
  2. add a trailing slash if needed
  3. rewrite the url to index.php?inc=page_to_visit.php

For example:- rewrites to

The website runs smooth on Firefox and Chrome but it keeps on auto reloading indefinite times in IE.

Please help me in solving this problem.

Visit this link to see the problem:

My .htaccess file looks like below:

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ 

RewriteCond %{REQUEST_URI} !^/index.php.*$ [NC]
RewriteRule ^(.*)/?$ index.php?inc=$1&%1 [L,NC,QSA]

Edit 1: added [QSA] flag instead of {QUERY_STRING}

Edit 2: added [R=301,L] to non-www to www url rewrite.


Not really a full answer to your question but I think you should make the non-www to www redirect a permanent 301 redirect RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] and mark it as [L] (don't process other rules afterwards).

Take a look here:

Not sure if this will solve your problems but worth a try.

EDIT: Your problem is definitely client side. Disabling JavaScript on the browser fixes the issue or neverending refresh.

Need Your Help

Git add Folder with Existing Git Repository

git github git-submodules repository git-add

I am making a git repository for my MacVim installation. Some of the plugins in my repository have their own .git folders and repo. The problem is... when I try to add one of these folders to my...

Linked list method changes other list (Java)

java linked-list polynomial-math

I've written a class which represents a polynom using a linked list (members in that list are objects of another class I made called PolyNodes). In that class I've written this method (this methods...