HTTP Forwards are being used a lot. And it's even very easy to use the actual path if your domain or URL has changed for example.
So let's say you are using a free hoster and you want to forward your webpages to another domain:
http://username.mywebhost.bla/files/page1.html -> has to be pointed to http://www.mydomain.info/files/page1.html
Note that only the domain name changes.
The problem in this situation was, that mod_rewrite and PHP is not activated on the free hoster server (username.mywebhost.bla). So we have to find another solution.
var path = location.pathname;
document.write("<meta http-equiv='Refresh' content='0; url=http://www.mydomain.info"+ path +"'>");