If you´re working on a website relaunch or you just want to migrate your project/website from one domain to another…here is the magic source code you have to paste into your .htaccess file in the root directory of your web application server.
That means for instance
The old blog article (oldsite.com):
https://www.growthhackingacademy.de/mvp/
will be directly instantly to (newsite.com)
https://www.hendriklennarz.com/mvp/
RewriteEngine on
RewriteCond %{HTTP_HOST} ^oldsite.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.oldsite.com [NC]
RewriteRule ^(.*)$ https://newsite.com/$1 [L,R=301,NC]
Responses