Redirect domain on subfolder to sub-sub folder
<p>I have a website installed on the following folder structure:</p>

<p>mywebsite.com</p>

<p>-/test</p>

<p>--/current</p>

<p>My goal is to have a domain </p>

<blockquote>
  <p>mywebsite.com/test</p>
</blockquote>

<p>with RewriteCond to look into /current subfolder.</p>

<p>Here is what I have so far :</p>

<pre><code>RewriteEngine on
Rewriterule ^$ /test [L]
RewriteCond %{HTTP_HOST} ^(www.)?mywebsite.com$
RewriteCond %{REQUEST_URI} !^/current/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /current/$1
RewriteCond %{HTTP_HOST} ^(www.)?mywebsite.com$
RewriteRule ^(/)?$ current/index.php [L]
</code></pre>

<p>But unfortunately this createt redirection issue</p>