title: SEO friendly html/ php form submission
body: <p>I am looking to create an SEO friendly URL after a filter has been submitted in an html form.</p>
  
  <p>After playing around for a while I have found a way, however I was wondering what otehr people think of it as I'm new to development. </p>
  
  <p>I have added some rewrite rules in the .htaccess file to make the urls more friendly. Examples below:</p>
  
  <p>Original URL:
  site-nane/list.php?brand=brand1&amp;min-price=0&amp;max-price=2000</p>
  
  <p>URL after rewrite:
  site-name/section/brand1/0-200</p>
  
  <p>Currently I have the form that submits the information to a separate php page which collects the variables and creates a new url from it which then redirects with a 301. Example of php below:</p>
  
  <pre><code>$min = $_GET[‘min-price’];
  $max = $_GET[‘max-price’];
  $brand = $_GET[‘brand’] ;
  
  header ('HTTP/1.1 301 Moved Permanently');
  header('Location: http://site-name/section/' . $brand . '/'. $min.'-'.$max );
  exit();
  </code></pre>
  
  <p>As you can see it collects the info and takes you back to the page and declares the previous page has permanently moved.</p>
  
  <p>Questions:</p>
  
  <ol>
  <li><p>Although this maybe quite primitive, will this still be ok to use without causing too much trouble?</p></li>
  <li><p>Will google hate me for creating so many 301’s</p></li>
  <li><p>Just noticed the code   header("Location: /foo.php",TRUE,301);   would it be best to use this or no difference?</p></li>
  </ol>