I have an HTML file with a letter index containing "internal" (relative) links, referring to the document itself. Now each letter contains links to external (absolute) links. There are about 5,500 such links in total and adding the same base href to each of them is quite stupid. It's a classic case where one would use a base href. Using a base href however, cancels out the interal refs.
Is it possible to keep the internal links and also use a "base href" for the external ones, since they all belong to the same base address?
Example:
<a href="#A">A</a> | <a href="#B">B</a> | ...
<a name="A"></a>
<li><a href="https://stackoverflow.com/questions/37158674">37158674</a></li>
<li><a href="https://stackoverflow.com/questions/37158675">37158675</a></li>
...
The base href here is of course "https://stackoverflow.com/questions/"