title: Mod rewrite (htaccess) on get variable not working
body: <p>I am testing out mod rewrite for my site. I thought i would try a simple code, but it's not working.  I have a .htaccess file in my root directory (localhost).  In localhost I have a page titled profile.php.  Profile.php can take a get variable <code>p</code> from my database.  So it looks like <code>localhost/profile.php?p=3</code> where <code>3</code> is a unique id.  When i go to localhost/profile.php?p=3 it works, but when i go to localhost/3, it doesn't.  I get a 404 not found.</p>
  
  <p>.HTACCESS file:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule .* - [L]
  RewriteRule ^(.*)$ http://localhost/profile.php?p=$1 [NC]
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>httpd.conf (currently): </p>
  
  <pre><code>&lt;Directory /&gt;
  Options FollowSymLinks
  AllowOverride All
  Order deny,allow
  Deny from all
  &lt;/Directory&gt;
  </code></pre>