[Solved] How two different URLs can be forwarded to a single URL with single JavaScript? [closed]


Logical OR (||) works here

Do this

<script>
if(window.location.href == 'https://www.example.com/2021/05/test-post.html' || 'https://www.example.com/2021/05/test-post.html?m=1')

{
window.location="https://www.website.com/2021/12/official-post.html";
}
</script>

0

solved How two different URLs can be forwarded to a single URL with single JavaScript? [closed]