title: .htaccess file for whole domain
body: <p>I have this structure in my project:</p>
  
  <pre><code>domain.com
  
      -index.php
  
      frontend
  
          .htaccess
  
          -index.php
          -view1.php
          -view2.php
  
          account
  
              -index.php
              -view1.php
              -view2.php
  
      backend
  
          -class1.php
          -class2.php
  </code></pre>
  
  <p>domain.com/index.php:</p>
  
  <pre><code>include ( 'frontend/index.php' );
  </code></pre>
  
  <p>domain.com/frontend/index.php:</p>
  
  <pre><code>$str = $_GET['values'];
  $str = str_replace ( '../' , '' , $str );
  
  $file = $str . '.php';
  
  if ( file_exists ( $file ) )
  {
      include ( $file );
  }
  </code></pre>
  
  <p>domain.com/frontend/.htaccess:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php?values=$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>So which urls should be called to get specific templates(.php-files)?</p>
  
  <p>Greetings!</p>