Posted by

Tags

Budget

0-100€
Funnel Step
Segment

Share it with your friends

Share on facebook
Share on twitter
Share on linkedin
Share on email
Share on whatsapp

Redirect of an old domain to a new one

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]

Results

External Resources

These tutorials might help you execute

You might also like these ideas...

Leave a Reply

Find the biggest lever for your growth

Not enough reach? Need more leads? Improve your sales performance? Join our free Growth Hacking Masterclass!

In our bi-weekly Growth Hacking Masterclass, we select the right Growth Hack individually with you and show you how to execute it in high-speed. Personal. Live – no webinar style (don’t worry). Limited spots available.