Feb 24, 2023

301 redirect, http to https, new link structure

johny published thread 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.

  1. I created website with the same content but with different links.

  2. The old website is using http protocol.

    New website has to use https protocol.

  3. 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?:

  1. redirect from http to https
  2. and then redirect old url subpages to new url subpages

Sorry for my chaotic post.

johny

johny

@johny

My BIO is empty. Try checking my profile later.

1
0 0