I have a scenario, where I am doing a site migration but the requirement is to show some message on the new site that "We have moved to a new site".
Here's 2 options I could think of:
- Add parameter to the new URL i.e.
https://old.example/product1 -> 301 -> https://new.example/product1?migrated
+--------------------------------+
| |
| https://old.example/product1 |
| |
+--------------+-----------------+
|
301 Redirect
|
+-------------------v---------------------+
| |
| https://new.example/product1?migrated |
| |
+-----------------------------------------+
- Add the parameter, then do another redirect to the actual page with two 301s i.e.
https://old.example/product1 -> 301 -> https://new.example/product1?migrated -> 301 -> https://new.example/product1
and we will inject a cookie that the user is coming from an old domain.
+--------------------------------+
| |
| https://old.example/product1 |
| |
+--------------+-----------------+
|
301 Redirect
|
+-------------------v---------------------+
| |
| https://new.example/product1?migrated |
| |
+-------------------+---------------------+
|
|
+---------------v------------------+
| |
| Inject a cookie that the |
| traffic is from old.example |
| by understanding the |
| parameter |
| |
+----------------+-----------------+
|
301 Redirect
|
+---------------v-----------------+
| |
| https://new.example/product1 |
| |
+---------------------------------+
- Take leverage of the
referrer
header. Unfortunately, browsers do not carry this header to the new site.
My questions are:
- How Google going to index new URL if we add
?migarted
parameter to the URL? What is the impact SEO wise? - If I go with option 2, where I will have 301s twice. How much the site will be penalised, SEO-wise?
- Any suggestions to handle such scenario?
utm_
parameters rather than?migrated
. See How can I find the number of users who visit my site via a redirect??utm_
or?migrated
. Also what is the penalty if I have multiple 301 redirects from old to new.