title: Links sometimes do not work cause of htaccess
body: <p>When I try to open   :</p>
  
  <p><code>http://custom.dev/pages/tpl/front/img/main.jpg</code>   works</p>
  
  <p>but when I try to open same file from another directory :</p>
  
  <pre><code>http://custom.dev/uploads/home-banners/main.jpg
  </code></pre>
  
  <p>It do not works , it redirect me to home page and in apache logs I see :</p>
  
  <pre><code>"GET /uploads/home-banners/main.jpg HTTP/1.1" 302 454 "http://custom.dev/"
  </code></pre>
  
  <p>If I delete .htaccess both links open , but site needs htaccess to work well</p>
  
  <p>I use the next .htaccess , what could be the problem?</p>
  
  <pre><code>RewriteEngine On 
  
  #FileETag none
  
  ##########################################################################
  #### ADMIN
  ##########################################################################
  
  # 8 vars
  RewriteRule wf-admin/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/ pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6&amp;var6=$7&amp;var7=$8&amp;var8=$9 [L]
  RewriteRule wf-admin/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)  pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6&amp;var6=$7&amp;var7=$8&amp;var8=$9 [L]
  # 7 vars
  RewriteRule wf-admin/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/ pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6&amp;var6=$7&amp;var7=$8 [L]
  RewriteRule wf-admin/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)  pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6&amp;var6=$7&amp;var7=$8 [L]
  # 6 vars
  RewriteRule wf-admin/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/ pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6&amp;var6=$7 [L]
  RewriteRule wf-admin/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)  pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6&amp;var6=$7 [L]
  # 5 vars
  RewriteRule wf-admin/(.*)/(.*)/(.*)/(.*)/(.*)/ pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6 [L]
  RewriteRule wf-admin/(.*)/(.*)/(.*)/(.*)/(.*)  pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6 [L]
  # 4 vars
  RewriteRule wf-admin/(.*)/(.*)/(.*)/(.*)/ pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5 [L]
  RewriteRule wf-admin/(.*)/(.*)/(.*)/(.*)  pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5 [L]
  # 3 vars
  RewriteRule wf-admin/(.*)/(.*)/(.*)/ pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4 [L]
  RewriteRule wf-admin/(.*)/(.*)/(.*)  pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4 [L]
  # 2 var
  RewriteRule wf-admin/(.*)/(.*)/ pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3 [L]
  RewriteRule wf-admin/(.*)/(.*)  pages/wfagate.php?file=$1&amp;var1=$2&amp;var2=$3 [L]
  # 1 var
  RewriteRule wf-admin/(.*)/ pages/wfagate.php?file=$1&amp;var1=$2 [L]
  RewriteRule wf-admin/(.*)  pages/wfagate.php?file=$1&amp;var1=$2 [L]
  # 0 var
  RewriteRule wf-admin/ pages/wfagate.php?file=$1 [L]
  
  
  ##########################################################################
  #### FORONT END
  ##########################################################################
  
  # 6 vars
  RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/ /index.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6&amp;var6=$7 [L]
  RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)  /index.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6&amp;var6=$7 [L]
  # 5 vars
  RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)/(.*)/ /index.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6 [L]
  RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)/(.*)  /index.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5&amp;var5=$6 [L]
  # 4 vars
  RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)/ /index.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5 [L]
  RewriteRule (.*)/(.*)/(.*)/(.*)/(.*)  /index.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4&amp;var4=$5 [L]
  # 3 vars
  RewriteRule (.*)/(.*)/(.*)/(.*)/ /index.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4 [L]
  RewriteRule (.*)/(.*)/(.*)/(.*)  /index.php?file=$1&amp;var1=$2&amp;var2=$3&amp;var3=$4 [L]
  # 2 var
  RewriteRule (.*)/(.*)/(.*)/ /index.php?file=$1&amp;var1=$2&amp;var2=$3 [L]
  RewriteRule (.*)/(.*)/(.*)  /index.php?file=$1&amp;var1=$2&amp;var2=$3 [L]
  # 1 var
  RewriteRule (.*)/(.*)/ /index.php?file=$1&amp;var1=$2 [L]
  RewriteRule (.*)/(.*)  /index.php?file=$1&amp;var1=$2 [L]
  # 0 var
  RewriteRule (.*)/ /index.php?file=$1 [L]
  RewriteRule ^([A-Za-z0-9-]+)/?$ index.php?file=$1 [L]
  
  RewriteRule scripts.js /engine/include/functions/loadFiles.php
  RewriteRule styles.css /engine/include/functions/loadFiles.php?what=css
  </code></pre>