title: htaccess get parameters for seo url
body: <p>// Sorry for the grammar mistakes and any other thing that's wrong, English isn't my mother tongue(don't know if I spelled it good).</p>
  
  <p>I have made SEO friendly URLs with htaccess. The only problem is, that I always would get information out the url(using GET) and now with the SEO friendly URLs I can't do that.</p>
  
  <p>My previous url was this:</p>
  
  <pre><code>http://rasolutions.eu/blogitem?id=2
  </code></pre>
  
  <p>So in PHP it would be $_GET['id'] and it would be 2. But now that I've got SEO friendly urls it's this:</p>
  
  <pre><code>http://rasolutions.eu/blogitem/2/
  </code></pre>
  
  <p>And now my PHP script can't see where he would get the ID from, so it will return me back to the homepage. </p>
  
  <p>I have Googled that you need to use (.*) in htaccess but I don't know where or how.
  My htaccess code is this atm:</p>
  
  <pre><code>Options +MultiViews
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^\.]+)$ $1.php [NC,L]
  
  # WWW to not WWW.
  RewriteCond %{HTTP_HOST} ^www\.rasolutions\.eu$
  RewriteRule ^/?$ "http\:\/\/rasolutions\.eu\/" [R=301,L]
      RewriteRule    ^blog/(.*)([0-9]+)/$    blog.php?page=$1    [NC,L]
      RewriteRule    ^blogitem/(.*)([0-9]+)/$    blogitem.php?id=$1    [NC,L]
  </code></pre>