title: .htaccess Rewrite Url?
body: <p>I have a dynamic php site at time variables are stored in url and I don't want them to be seen . e.g original url: <a href="http://www.example.com/root_new/news.php?id_new=9" rel="nofollow noreferrer">http://www.example.com/root_new/news.php?id_new=9</a> now I want to change this url to <a href="http://www.example.com/root_new/news" rel="nofollow noreferrer">http://www.example.com/root_new/news</a></p>
  
  <p>I initly tried to achieve this with pure PHP but did some research and came across that best way to do achieve this is through .htaccess which is a config file that controls Apatche server anyway....</p>
  
  <p>I am not very good at this but managed to put together a code inside my.htaccess that I belief should do the trick but it does not</p>
  
  <p>.htaccess code: </p>
  
  <pre><code>RewriteEngine on  
  
  
  
  RewriteRule ^news/([^/.]+)/?$ news.php?id_new=$1 [L]
  </code></pre>
  
  <p>of course this file is in my root where the index.php and the rest of the pages are.</p>
  
  <p>could someone suggest a solution to what I am trying to achieve or tell me where I am going wrong with my .htaccess commands.</p>