title: .htaccess - adding sub directory to all directories
body: <p>Using .htaccess I am trying to add a directory to all URLs but don't seem to be having any luck. I can do it for each directory but was wondering if there is an easier way around this.</p>
  
  <p>I need all my urls such as:</p>
  
  <pre><code>www.example.com/abc
  www.example.com/def
  www.example.com/ghi
  </code></pre>
  
  <p>to append the directory 'test' making the URLs look like this:</p>
  
  <pre><code>www.example.com/test/abc
  www.example.com/test/def
  www.example.com/test/ghi
  </code></pre>
  
  <p>Tried with PHP but that seemed kind of silly so .htaccess seemed like the best bet.</p>