I am creating a website which is located in /shop/ on my webserver. It has a seperate domain.
Now, I want to change every request that comes in.
http://techinf.de/shop/ shall become http://holzwerkstatt-osel.de/ and
http://www.techinf.de/shop/ shall become http://www.holzwerkstatt-osel.de/
the actual request, like product.php?id=2 must be the same.
Since you want to persist the
www(or lackthereof), you likely do need to usemod_rewritefor this. The following should work:Edit: If you don’t care about the whole
wwwthing, just usingmod_aliasontechnif.deshould work:This takes everything after
/shopand appends it to the redirection URL, then redirects. So/shop/product.php?id=2becomeshttp://holzwerkstatt-osel.de/product.php?id=2, etc.