.htaccess redirect all pages to the homepage on a new domain

The below answer could potentially cause an infinite redirect loop…

Here, this one redirects everything after the domain name on the URL to the exact same copy on the new domain URL:

RewriteEngine on 
RewriteRule ^(.*)$ http://www.newdomain.com/ [R=301,L]

redirects to:


Leave a Comment