subdomain same content
I've got a domain (let's say www.shop.com) and a subdomain (for example test.shop.com).
On www.shop.com is a normal webshop, and I want the same shop on my subdomain without having to copy all files to my subdomain.
So when someone visits my subdomain he sees the same shop, but with the url of the subdomain.
I know this can be done with a rewrite rule, but I don't know how :confused:
Can someone help me?
ServerAlias may be a solution for you. It is the more effective apache config method than rewrite rules. Your domain become faster if you do not use rewrite engine.
#ServerAlias anotherdomain.com #optional
#ServerAlias www.anotherexample.net # optional
# and more config