If you're familiar with search engine optimisation (SEO), you'll have come across the concept of redirects. If you're not familiar with SEO or haven't heard of redirects, it's important to understand what they mean as they might be damaging your website. The simplest example is that of something called canonicalisation. That's a really fancy word or something that's quite simple at its foundation, but more complex when you unpack it. To give you an example, open your website twice (different tabs) using these two formats:
- http://yourdomain.com
- http://www.yourdomain.com
- http://www.yourdomain.com
- http://yourdomain.com > http://www.yourdomain.com (redirects to include the "www").
- http://www.yourdomain.com > http://www.yourdomain.com (doesn't change).
- 301 - A permanent redirect. This tells Google that the page being redirected from no longer needs to exist and that the page being arrived at is the correct and only one.
- 302 - Temporary redirect. This tells Google that the page being redirected from does still exist and that this is just a temporary redirection.