title: How to remove "?" Question Mark from URL in wordpress
body: <p>Please help me. how to remove "?" in query string url <code>rhino/sub-categories/?category=Hotel</code> like as 'rhino/sub-categories/Hotel' in localhost. it's called data in custom database. So, i want to remove <code>?</code> from the url. I'm trying htaccess like as- </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;   
  RewriteEngine On   
  RewriteBase /rhino/   
  RewriteRule ^index\.php$ - [L]   
  RewriteRule ^sub-categories/([^.]*)$ sub-categories/?category=$1 [QSA,L]   
  RewriteCond %{REQUEST_FILENAME} !-f   
  RewriteCond %{REQUEST_FILENAME} !-d   
  RewriteRule . /rhino/index.php [L]   
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>and try function.php like as:-</p>
  
  <pre><code>function listen_rewrite_action() {   
  add_rewrite_tag('%category%','([^/]*)');   
  add_rewrite_rule('^sub-categories/([^/]+)$','index.php?pagename=sub-categories&amp;category=$matches[1]','top');  
  add_rewrite_rule('^sub-categories/([^/]+)/page/([^/]+)$', 'index.php?pagename=sub-categories&amp;category=$matches[1]&amp;paged=$matches[2]','top');    
  }   
  add_action( 'init', 'listen_rewrite_action' );
  </code></pre>
  
  <p>syntax and many more. Please help me how to solve this.</p>