title: Codeigniter using routes & 301 redirects
body: <p>I am in the process of deploying a new site which needs 301 redirects setup for existing links indexed by Google.</p>
  
  <p>Can anyone suggest how using the routes feature &amp; regular expression I force any links to use the new 301 redirect.</p>
  
  <p>E.g. a route</p>
  
  <pre><code>$route['hotel/pages/([a-z0-9_-]+)//\.htm$/'] = 'hotel/page/redirect/$1/$2';
  </code></pre>
  
  <p>So i'd like any pages that following the following structure:</p>
  
  <blockquote>
    <p>site.com/hotel/pages/somesection/page.html</p>
  </blockquote>
  
  <p>to use another controller where i'll setup the 301 redirect (I can do this bit)</p>
  
  <p>Can anyone give me some suggestions?</p>