title: Check cookie and redirect with Apache
body: <p>I'd love to get some feedback on this. I'm not sure if it's the right approach.</p>
  
  <p><strong>The details</strong></p>
  
  <p>I'm running Apache 2 with PHP 5.3/MySQL 4 and Drupal 6 is the platform.</p>
  
  <p>I'm developing a site which contains restaurant reviews in a couple of selected cities.
  When the users arrives at the site it can choose which city is theirs. I store their choice in a cookie and if they haven't made a choice I've selected a default city.</p>
  
  <p><strong>Proposed solution</strong></p>
  
  <p>Now I want the URL mydomain.com/reviews to redirect to the city specific URL based on their city choice. For example mydomain.com/reviews/paris if I've selected Paris as my city.
  (If there's no cookie set it should redirect to the default city.)</p>
  
  <p>I consider this the best alternative because I want the user to be able to see reviews in another city without changing their city. If they'd like to view reviews for London restaurant they can simply go to mydomain.com/reviews/london.</p>
  
  <p>For the best performance I'm thinking of having Apache check the cookie and make the redirect to the right city when the user goes to mydomain.com/reviews.</p>
  
  <p><strong>So here are my questions…</strong></p>
  
  <ol>
  <li>How do I configure Apache to do this?</li>
  <li>Is this the best way to go? </li>
  </ol>