title: check request URL in apache webserver
body: <p>I want to check whether request URL is empty or it will start with /test</p>
  
  <p>Eaxmple:</p>
  
  <p>if I access www.example.com it should redirect to www.example.com/test</p>
  
  <p>if the URL already have www.abc.com/test no redirection required.</p>
  
  <pre><code>RewriteCond %{HTTP_HOST}  example.com
  RewriteCond %{REQUEST_URI} !/test
  RewriteRule ^.*$ http://example.com/test/$1  [R=301,L,NC]
  </code></pre>
  
  <p>any modifications required to check request_URL is null?</p>