title: htaccess redirect regex
body: <p>I want to write a regex to redirect JUST <code>http://www.domain.com/pages</code>, not for any other subdirectories like <code>http://www.domain.com/pages/page1</code>.</p>
  
  <p>I was thinking about these 2 solutions, but as I am not good at writing regex, I can just describe it.</p>
  
  <p>a) I need to write a regex, that will return true only if the searched sub-string <code>pages</code> is at the very and of an URL.</p>
  
  <p>OR </p>
  
  <p>b) I need to write a regex, that will return true only if the searched sub-string is exactly same as the URL, so I will search for <code>http://www.domain.com/pages</code>.</p>
  
  <p>OR do you have any other ideas how to solve this?</p>