title: Remove question mark from url using htaccess
body: <p>I want to redirect the url : <a href="https://WEB_URL/video?id=1">https://WEB_URL/video?id=1</a> to <a href="https://WEB_URL/video/1">https://WEB_URL/video/1</a>
  and I have written following htaccess code but it is not working :</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-d 
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^video/([^.]*)$ video?id=$1 [QSA,L]
  </code></pre>
  
  <p>My full htaccess code is as follows:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^\.]+)$ $1.php [NC,L]
  
  
  RewriteEngine On
  ErrorDocument 404 /login.php
  
  &lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /
  
      # To externally redirect /dir/abc.php to /dir/abc
      RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+(.+?)\.php[\s?] [NC]
      RewriteRule ^ /%1 [R=301,L,NE]
  
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME}.php -f
      RewriteRule ^([^\.]+)/?$ $1.php [QSA,NC,L]
  
      RewriteCond %{REQUEST_FILENAME} !-d 
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^video/([^.]*)$ video?id=$1 [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>why it is not working ? What I am doing wrong please help me on this.
  Thanks in advance.</p>