Which redirect rule would I use to redirect all pages under olddomain.example to be redirected to newdomain.example?
The site has a totally
My reputation won't allow me to comment on an answer, but I just wanted to point out that the highest rated answer here has an error:
RewriteEngine on
RewriteRule ^(.*)$ http://www.newdomain.com$1 [R=301,L]
should have a slash before the $1, so
RewriteEngine on
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]