title: Lose the File Name in a URL but keep the query string
body: <p>Can someone explain how I can lose the filename of a page but keep the query string intact? See the example situation below:</p>
  
  <p>I have a blog list that's at<br>
  - www.example.com/tips-and-articles/ <em>(tips-and-articles.php)</em></p>
  
  <p>I have categories currently at<br>
  - www.example.com/tips-and-articles/article <em>(category.php)</em></p>
  
  <p>I have posts currently at<br>
  - www.example.com/tips-and-articles/article/here-is-an-article <em>(post.php)</em></p>
  
  <p>What I'm having difficulty with is removing the 'tips-and-articles' to just show the category and/or the post title, see below.</p>
  
  <p>I want to have the following path to the category:<br>
  - www.example.com/article</p>
  
  <p>I want to have the following path to the post:<br>
  - www.example.com/article/here-is-an-article</p>
  
  <p>Below is my htaccess file currently, if I remove the 'tips-and-articles' I get an error.</p>
  
  <pre><code>RewriteRule ^tips-and-articles/([^/]+)/([^/]+) /post.php/?category=$1&amp;post=$2 [QSA]
  
  RewriteRule ^tips-and-articles/([^/]+) /category.php/?category=$1 [QSA]   
  
  RewriteCond %{REQUEST_FILENAME} !-f
  
  RewriteRule ^([^\.]+)$ $1.php [NC,L]
  </code></pre>