johny

301 redirect, http to https, new link structure

by @johny (114), 1 year ago

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.

543 Views
0 Upvotes
2 Replies
2 Users
Sort replies:
jaap
by @jaap (1667), 1 year ago

Read this: growhackscale.com/blog/301-redirect-http-https

aklththegirl
by @aklththegirl (220), 11 months ago

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.

Join the forum to unlock true power of SEO community

You're welcome to become part of SEO Forum community. Register for free, learn and contribute.

Log In Sign up