title: How to make an internal redirect using a file .htaccess?
body: <p>I have the urls</p>
  <pre><code>https://example.net/app/ref/user/u123456
  
  https://example.net/app/ref/user/u123456/
  </code></pre>
  <p>Need redirect both url to <a href="https://example.net/app/ref/user/index.php?referral=u123456" rel="nofollow noreferrer">https://example.net/app/ref/user/index.php?referral=u123456</a></p>
  <p>How to do it with a file .htaccess? Unfortunately, I couldn't do it, so I'm asking for your help.</p>
  <p>UPD: Now me .htaccess is in the same directory as index.php:</p>
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine on
  &lt;/IfModule&gt;
  AddType application/x-httpd-php .html
  &lt;Files 403.shtml&gt;
  order allow,deny
  allow from all
  &lt;/Files&gt;
  </code></pre>