title: Redirect pages after removing filename extension from URL
body: <p>I've followed <a href="https://alexcican.com/post/how-to-remove-php-html-htm-extensions-with-htaccess/" rel="nofollow noreferrer">this</a> tutorial as to how to remove the file extention from the URL. The problem is, I also need to redirect a few pages that had their names changed.</p>
  
  <p>My current .htaccess file looks like this:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Options +MultiViews
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^\.]+)$ $1.php [NC,L]
  RewriteRule ^([^\.]+)$ $1.html [NC,L]
  
  RewriteRule ^old\-page\-name$ /new-page-name</code></pre>
  </div>
  </div>
  </p>
  
  <p>The problem is, that redirection does not work. It works when adding the trailing <code>.php</code> and in that case, it adds a port (7080) to the address, so it looks like <code>domain.com:7080/new-address.php</code>.</p>
  
  <p>Thanks for the help!</p>