title: Rewrite rule. .htaccess . ERR_TOO_MANY_REDIRECTS
body: <p>I added the following Rewrite rule to .htaccess:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^page/?$ index.php?cat=123 [L]
  </code></pre>
  
  <p>and it loads content of /index.php?cat=123 when I go to www.site.com/page</p>
  
  <p>The problem is that I also need to set up redirection from www.site.com/index.php?cat=123 to www.site.com/page
  but when I try to do this I get "too many redirections" error. Any idead how fix this?</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^page/?$ index.php?cat=123 [L]
  RewriteCond %{QUERY_STRING} ^cat=123$
      RewriteRule ^index\.php$ http://www.mysite.com/page [L,R=301]
  </code></pre>