I am trying to use a code compile-able by both by biblatex (biber) and bibtex but it contains this link in the bibliography:
https://web.archive.org/web/20110412120322/http://www.allheadlinenews.com/briefs/articles/90043651?After%20hesitation%2C%20Jordan%20joins%20in%20Libya%20no-fly%20campaign
The problem is that web.archive redirects to something that backslashed % characters are becoming /% instead of just %.
MWE:
main.tex :
\documentclass{article}
\usepackage{array}
\usepackage{longtable}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\xdef\UseBibLaTeX{1}
\usepackage[hyphens]{url}
\ifnum\UseBibLaTeX>0
\usepackage[
backend=biber,
style=alphabetic,
citestyle=authoryear,
natbib=true,
]{biblatex}
\addbibresource{References.bib}
\else
\usepackage{natbib}
\renewcommand\harvardurl[1]{\textbf{URL:} \url{#1}}
\fi
\usepackage[colorlinks]{hyperref}
\begin{document}
Test \cite{cite01}
\begin{sloppypar}
\ifnum\UseBibLaTeX>0
\printbibliography
\else
\bibliographystyle{agsm}
\bibliography{References}
\fi
\end{sloppypar}
\end{document}
References.bib:
@article{cite01,
title ={After hesitation, {Jordan} joins in {Libya} no-fly campaign},
url ={https://web.archive.org/web/20110412120322/http://www.allheadlinenews.com/briefs/articles/90043651?After\%20hesitation\%2C\%20Jordan\%20joins\%20in\%20Libya\%20no-fly\%20campaign},
urldate ={2020-08-04},
month =Apr,
author={{TML Staff}},
journal={{All Headline News (AHN)}},
year ={2011},
day={06}
}

biblatexyou should definitely not escape any US-ASCII chars (that includes%) in URLs. Most BibTeX styles that properly support URL will also have no problem with unescaped%s (at least whenurlorhyperrefis loaded). If there is a BibTeX style that has aurlfield yet does not support%, then I would call that a deficiency of that style. – moewe Aug 10 '20 at 14:37\harvardurlas\renewcommand\harvardurl{\textbf{URL:} \url}and not as *\renewcommand\harvardurl[1]{\textbf{URL:} \url{#1}}– moewe Aug 10 '20 at 14:40