title: mod-rewrite remove folder name from url
body: <p>I am using <a href="http://pkp.sfu.ca/?q=ojs" rel="nofollow">OJS</a> and I have installed it inside a folder called "journals". I have created some journals there (for example "journal1", "journal2", etc).</p>
  
  <p>Now I am getting paths like this: <code>www.example.com/journals/index.php/journal1</code>,
  <code>www.example.com/journals/index.php/journal2</code>, etc.</p>
  
  <p>What I want is to map <code>www.example.com/journals/index.php/journal1</code>
  to looks like <code>www.example.com/index.php/journal1</code> (removing the journal part from URL).</p>
  
  <p>I can't move OJS to root because I have some other files there.</p>
  
  <p>Here is the <code>.htaccess</code> file which I am using currently (it's in "journals" folder and giving me a 500)</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
  RewriteCond $1 !^journals
  RewriteRule ^(.*) /journals/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Also Here is the error.log</p>
  
  <pre><code>[Fri Oct 12 22:16:45 2012] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. 
  </code></pre>