title: How to fix 302 redirect and make it 301?
body: <p>I have a website built using PHP Symfony Framework. The site is built using 4 languages, so we have built sub domains of it like</p>
  
  <pre><code>en.xyz.com
  es.xyz.com
  de.xyz.com
  it.xyz.com
  </code></pre>
  
  <p>Following is the code snippet I have used for setting user culture from domain name
  <a href="http://snippets.symfony-project.org/snippet/332" rel="nofollow">http://snippets.symfony-project.org/snippet/332</a></p>
  
  <p>Now the problem is, we are doing some SEO on the website and it is returning 302 redirect error for all these 3 URLs.</p>
  
  <p>I want to fix this and make these URLs 301 as this is what our SEO is suggesting.</p>
  
  <p>Any idea how to do that ?</p>