Apache - redirecting with a new domain
问题 We've had our site running on (say) stuff.com for a while, with a load of sub-domains for different applications, red.stuff.com, blue.stuff.com and of course a load of content stuff.com/things/in/my/head We've recently purchased a new domain, awesome.com. Can we configure Apache to replace the 'stuff.com' in any request that turns up, with 'awesome.com' permanently? Would this method keep any search engine listings and existing links valid? Thanks 回答1: You can use Apache's rewrite engine. Add