title: Rewrite url rules in .htaccess inside a directory
body: <p>I'm trying to use rewrite url rules using a .htaccess file. This seems to work fine in my main .htaccess file (only works for php pages which exist in same directory), but when I want to use another .htaccess for php file inside a subdirectory the rules don't apply at all and I get a 404 error page.</p>
  
  <p>The file I want to point to is /news/story.php. story.php requests an integer variable called 'article' to fetch the article from database and display it.
  So basically what I want to do is replace <a href="http://www.mydomain.com/news/story.php?article=1" rel="nofollow">http://www.mydomain.com/news/story.php?article=1</a>
  with <a href="http://www.mydomain.com/news/story/article/1/" rel="nofollow">http://www.mydomain.com/news/story/article/1/</a></p>
  
  <p>I'm using the following rules in the .htaccess file which is inside the 'news' directory.</p>
  
  <pre><code># For security reasons, Option followsymlinks cannot be overridden.
  #Options +FollowSymLinks
  Options +SymLinksIfOwnerMatch
  RewriteEngine on
  RewriteRule story/article/(.*)/ story.php?article=$1
  RewriteRule story/article/(.*) story.php?article=$1
  </code></pre>
  
  <p>Thanks for your help </p>