I have a .php file that outputs html. In the html there are links in the form of anchor tags, eg:
<a href="https://www.example.com/page1.php">Page 1</a>
Can .htaccess be used to rewrite this as:
<a href="https://www.example.com/page1.html">Page 1</a>
...so in the .php file the code is written as the first example but when the page is inspected in the browser the served link is as the second example?
Thanks