apache - 301 Redirect all pages to same page on new domain -
This is a follow-up question. Specifically, how do the following solutions differ? Rewrite Rules Solution: ^ ^. () * RewriteRule ^ HTTP://newdomain.com/$1 [R = 301, L] redirection solution: redirect 301 / http://newdomain.com/ This is a browser redirect versus a server redirect. In the first case, internal redirection will be created and the browser will receive a response from the target server. In the second case a browser will be served with a 301 code (permanently transferred) and a location header, a new URL on which this target server will need to make another request You can see the difference between yourself, eg by installing "Live HTTP Header" plugin in Firefox and checking all requests your browser receives.