301 redirect, http to https, new link structure
johny published thread 301 redirect, http to https, new link structureHello.
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.