title: why window.location appending instead of replacing the URL in ie
body: <p>I am getting wrong URLs in ie but not in firefox and chrome.</p>
  
  <p>Basically, I have a textfield called text-search. I am using jQuery and rewriterule in htaccess to internally redirect pages. I am on localhost and all files are in a folder called test.</p>
  
  <p>In firefox and chrome, if you enter 'hello' hit enter, 'hi' hit enter and 'goodbye' hit enter in the text-search box you get the correct URLs as</p>
  
  <p>localhost/test/testing/hello</p>
  
  <p>and</p>
  
  <p>localhost/test/testing/hi</p>
  
  <p>and </p>
  
  <p>localhost/test/testing/goodbye</p>
  
  <p>repectively.</p>
  
  <p>In ie you get</p>
  
  <p>localhost/test/testing/hello</p>
  
  <p>and</p>
  
  <p>localhost/test/testing/testing/hi</p>
  
  <p>and</p>
  
  <p>localhost/test/testing/testing/testing/goodbye</p>
  
  <p>respectively</p>
  
  <p>The problem here is that 'testing' is prepending. How to stop this from happening in ie. I could not find an answer to this problem on the web.</p>
  
  <p>html and jquery code</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
          &lt;title&gt;Untitled Document&lt;/title&gt;
  
  
          &lt;base href="http://localhost/test/" /&gt;
          &lt;script src="jQuery.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              $(document).ready(function(){
                  $("#text-search").keyup(function(e){
                      if (e.keyCode == 13){
                          window.location.replace("testing/"+$('#text-search').val());
                      }
                  })
              })
          &lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;input type='text' id='text-search'&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>.htaccess</p>
  
  <pre><code>Options +FollowSymLinks -MultiViews
  RewriteEngine On
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  RewriteRule ^testing/(.+)$ /test/testing.php?string=$1 [L]
  </code></pre>
  
  <p>Can you please help me on this. Many thanks</p>