title: .htaccess routing in PHP
body: <p>I have a customized framework. My directory structure is:</p>
  
  <pre><code>root
  -&gt;private
    -&gt;www
      -&gt;controllers
        -&gt;load.php
        -&gt;router.php
      -&gt;views
        -&gt;home.php
        -&gt;sign-up.php
  
  -&gt;index.php
  -&gt;htaccess.php
  </code></pre>
  
  <p>when i type www.mysite.com, the home.php page is displayed. In the home-page i have a sign-up button. <code>&lt;li&gt;&lt;a href="sign-up.php"&gt;Sign-Up&lt;/a&gt;&lt;/li&gt;</code>
  On click, i want the .htaccess file to route this request to sign-up.php under the views folder.
  My current htaccess file looks like:</p>
  
  <pre><code>AddHandler cgi-script .pl .cgi
  Options +ExecCGI +FollowSymLinks
  RewriteEngine on
  RewriteCond %{SCRIPT_FILENAME} !-d  
  RewriteCond %{SCRIPT_FILENAME} !-f
  RewriteRule ^([a-zA-Z]*)/?([a-zA-Z]*)?/?([a-zA-Z0-9]*)?/?$ index.php?controller=$1&amp;action=$2&amp;id=$3 [NC,L]
  </code></pre>
  
  <p>What am i doing wrong/not doing to get what i want???
  m stuck.help!</p>