title: Add URL Rewrite Rule To Wordpress
body: <p>I've written a Wordpress plugin that adds a query string to the URL. However I can't seem to modify the htaccess to rewrite this. Not sure if Wordpress is overriding it?</p>
  
  <p>The current htaccess is:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  
  <p>And the URL I'm trying to rewrite is:</p>
  
  <pre><code>http://domain.com/deal-info/?id=87&amp;post_name=testdealtitle
  </code></pre>
  
  <p>Desired URL:</p>
  
  <pre><code>http://domain.com/deal-info/87/testdealtitle
  </code></pre>
  
  <p>I've tried adding:</p>
  
  <pre><code>RewriteRule ^([^/]*)/([^/]*)$ /deal-info/?id=$1&amp;post_name=$2 [L]
  </code></pre>
  
  <p>to no avail. Any ideas appreciated!</p>