I've read lots of stuff here on SO, but it doesn't fit with my needs.
I wish to redirect a page from a domain (properly a subdomain) to another maintaining the same path.
I'm using a blogging service, not running a server; but I can edit the global head of my blog.
I've managed to redirect towards the main page of the other domain using:
<meta http-equiv="refresh" content="1; url=http://subdomain-2.domain.com">
window.location.href = "http://subdomain-2.domain.com"
The key element was
window.location.pathname. Here I've found what I needed.