301 redirect, http to https, new link structure
Hello.
I am creating new version of existing website for my friend.
He wanted it to be responsive.
-
I created website with the same content but with different links.
-
The old website is using http protocol.
New website has to use https protocol.
-
New website need to be with www prefix.
I created 301 redirects for old url to new urls (subpages), using online generator:
> # Code generated by www.301-redirect.online > RewriteEngine on > RewriteCond %{QUERY_STRING} ^$ > RewriteRule ^649,rzeki-$ /rzeki.html? [R=301,L] > > RewriteCond %{QUERY_STRING} ^$ > RewriteRule ^672,lyna$ /lyna.html? [R=301,L] > > RewriteCond %{QUERY_STRING} ^$ > RewriteRule ^679,marozka$ /marozka.html? [R=301,L] > > RewriteCond %{QUERY_STRING} ^$ > RewriteRule ^681,omulew$ /omulew.html? [R=301,L] > > RewriteCond %{QUERY_STRING} ^$ > RewriteRule ^680,kosna$ /kosna.html? [R=301,L] > > RewriteCond %{QUERY_STRING} ^$ > RewriteRule ^683,drweca$ /drweca.html? [R=301,L] > > RewriteCond %{QUERY_STRING} ^$ > RewriteRule ^2,lyna-i-marozka-$ /lyna-marozka.html? [R=301,L] > > RewriteCond %{QUERY_STRING} ^$ > RewriteRule ^655,splywy-kajakowe-$ /splywy-kajakowe.html? [R=301,L] >
How do I create 301 redirect to https version of my website?
Is it right way to do the migration?:
- redirect from http to https
- and then redirect old url subpages to new url subpages
Sorry for my chaotic post.
Read this: growhackscale.com/blog/301-redirect-http-https
Yes, it is the right way to do the migration. You can create a 301 redirect from the old HTTP URLs to the new HTTPS URLs. You can also add 301 redirects from the old URL subpages to the new URL subpages. It is important to keep in mind that you need to be very specific and thorough when creating redirects as this will ensure a smooth migration.