I have a domain that's not to be used anymore. I want to redirect all from http://www.old.com/
to http://www.new.com/
, no matter what page the user's attempted to access on www.old.com
.
Doing this:
RewriteEngine on
Redirect 301 / http://www.new.com/
is fine for the root, but other pages would do this:
http://www.old.com/cms -> http://www.new.com/cms
whereas I'd want it to go to the root, no matter what.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…