title: Rewriting product URL with keyword product in woocommerce for third party API
body: <p>We have woocommerce installed.
  We are trying to integrate a third party API. The server sends a request to Woocommerce to get a particular info.</p>
  
  <p>When the URL is: </p>
  
  <p><a href="http://demo.geelani.net/s2pw/test/test1/?id=guid&amp;call=GetPrices&amp;product=2100022;2100023;2100022e&amp;quantity=2&amp;additionalSheetCount=4" rel="nofollow">http://demo.geelani.net/s2pw/test/test1/?id=guid&amp;call=GetPrices&amp;product=2100022;2100023;2100022e&amp;quantity=2&amp;additionalSheetCount=4</a></p>
  
  <p>It says not found.</p>
  
  <p>However, when we change the parameter "product" in above URL to Product or product1, it works fine. Ex: <a href="http://demo.geelani.net/s2pw/test/test1/?id=guid&amp;call=GetPrices&amp;Product=2100022;2100023;2100022e&amp;quantity=2&amp;additionalSheetCount=4" rel="nofollow">http://demo.geelani.net/s2pw/test/test1/?id=guid&amp;call=GetPrices&amp;Product=2100022;2100023;2100022e&amp;quantity=2&amp;additionalSheetCount=4</a></p>
  
  <p>We feel the issue is how the products are fetched by woocommerce and is conflicting with it. It has to do with permalinks or wordpress.</p>
  
  <p>One possible solution is rewriting the URL using htacces. but how do we do this?</p>
  
  <p>The current .htaccess file looks like this:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /s2pw/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /s2pw/index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  
  <p>I changed it to this:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /s2pw/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /s2pw/index.php [L]
  RewriteCond %{THE_REQUEST} ^(GET|POST)\ /test/test1/\?id=(.*)&amp;call=(.*)&amp;product=(.*)\ HTTP
  RewriteRule ^ /test/test1/?id=%2&amp;call=%3&amp;Product=%4? [R=301,L,NE]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>