title: How to redirect blog home page if post id empty or not exist in codeigniter
body: <p>I am developing blog website by using <code>Codeigniter</code>. When I click <code>category</code> it shows all post category-wise, but I want it to redirect to the blog home page if the post ID does not exists or empty at url. </p>
  
  <p>How can I do this in Codeigniter? </p>
  
  <p>In row PHP we could use the <code>$_Get</code> method for checking post ID is set or empty. If it was empty or does not exist then we can redirect to the home page by using the <code>header()</code> method. </p>
  
  <p>So, how will I do redirect in <code>Codeigniter</code>?</p>