title: URL Rewriting on Localhost? Apache PHP
body: <p>I am using Apache mod_rewrite on Xampp on my local machine but the code doesnt seem to work.</p>
  
  <p>Please look at the code below and assist me. I'm a beginner with this.</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /
  RewriteCond     %{REQUEST_FILENAME}     !-f
  RewriteCond     %{REQUEST_FILENAME}     !-d
  RewriteRule     ^m3/([a-zA-Z0-9-]+)$/?profile=com_frontpage&amp;url=$1 [L,QSA] 
  </code></pre>
  
  <p>What I want is the URL below:</p>
  
  <pre>
  http://localhost/m3/?profile=com_frontpage&url=nero
  </pre>
  
  <p>to be rewritten as</p>
  
  <pre>
  http://localhost/m3/nero
  </pre>
  
  <p>Please help me achieve this.</p>
  
  <p>Thanx</p>
  
  <p>Thanks for your quick responses</p>
  
  <p>I have implemented the revised code given but once I try to enter the new URL I keep getting a 404 error.</p>
  
  <p>I am using Xampp on a Windows OS so renaming the file to .htaccess is being rejected and I am not sure using 'htaccess.txt' is working.</p>
  
  <p>What could be the issue?</p>
  
  <p>Thanx</p>