title: Wordpress - rewrite fake urls
body: <p>I created a fake page in wordpress, that i catch with this code: </p>
  
  <pre><code>if ($_GET['fake_page'] == "myfakepage") {
    add_filter('the_title','plugin_myown_title');
    add_filter('the_content','plugin_myown_content');
    add_action('template_redirect', 'plugin_myown_template');
  }
  </code></pre>
  
  <p>this works correctly.
  Now what I'd like to do is to rewrite such this url</p>
  
  <pre><code>my_site?fake_page=myfakepage
  </code></pre>
  
  <p>in</p>
  
  <pre><code>my_site/product/myfakepage
  </code></pre>
  
  <p>where product is an existing page created from wordpress dashboard.</p>
  
  <p>I followed this guide:</p>
  
  <p><a href="http://statichtml.com/2010/mod-rewrite-baseon-on-query-string.html" rel="nofollow">http://statichtml.com/2010/mod-rewrite-baseon-on-query-string.html</a></p>
  
  <p>and defined this rule:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{QUERY_STRING}     ^fake_page=(.*)$    [NC]
  RewriteRule ^/$       my_site/product/%1      [NC,L,R=301]
  </code></pre>
  
  <p>but what i get is </p>
  
  <pre><code>my_site/product?fake_page=myfakepage
  </code></pre>
  
  <p>where is the problem?
  Besides I would like to know if typing into browser:</p>
  
  <pre><code>my_site/product/myfakepage
  </code></pre>
  
  <p>i could make wordpress treats it as</p>
  
  <pre><code> my_site?fake_page=myfakepage
  </code></pre>
  
  <p>without any redirect.
  Thanks!</p>