Moved Permanently Redirect SEO

I was just wondering how to redirect an old URL to a new one without being punished by Google.

The solution is to tell him we permanently moved the URL. So Google will change the URL soon or later 😉

Here's the code. Put this line into your .htaccess file (in your root folder).

First the old one and after the new one:

redirect 301 /contact-me https://ricard.dev/contact
Code language: JavaScript (javascript)

About Ricard Torres

Senior Front-end Software Engineer at Netcentric, from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

@ricard_dev @ricard_dev

📝 Blog 🎙 Podcast

Leave a Reply

Add <code> Some Code </code> if you need to.

*
*