Forum Moderators: phranque

Message Too Old, No Replies

http Html pages to https wordpress pages 301 redirection

         

mariya

5:01 am on Jun 1, 2020 (gmt 0)

5+ Year Member Top Contributors Of The Month



We are going to migrate our current HTML site to WordPress site and also HTTP to https migration for the same website, The entire URL structure changed now.

Which one I have to use from the below options, without losing SEO benefits.

.htaccess domain level 301 redirection
using any plugins to redirect every HTML pages to WordPress pages (It is a large process).
.htaccess domain level 301 redirection with plugin redirect for important 4 0r 5 HTML pages to WordPress pages
If we are migrating HTTP to https I can use .htaccess 301 redirection, but in our case URLs are also changed due to HTML to WordPress migration.

phranque

5:41 am on Jun 1, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], mariya!

how many legacy urls are involved?

[edited by: phranque at 8:12 am (utc) on Jun 1, 2020]

mariya

6:07 am on Jun 1, 2020 (gmt 0)

5+ Year Member Top Contributors Of The Month



Yes, Our html pages are ranked well in google, So I need to redirect to new wordpress urls,

phranque

8:14 am on Jun 1, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I've edited the typo in my post to clarify the question.
i.e., "how many...?"

mariya

8:48 am on Jun 1, 2020 (gmt 0)

5+ Year Member Top Contributors Of The Month



6 pages are ranked well ( Main pages)

also, 2 old URLs need to redirect the same new page
3 old URLs need to redirect the same new page

Total old page count is = 82

phranque

11:39 am on Jun 1, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



i would do one-to-one redirects to the equivalent wordpress content.
the easiest way in your case is using a wordpress plugin.
if 82 redirects seems like a lot of work, look for a plugin that allows bulk imports.

mariya

12:13 pm on Jun 1, 2020 (gmt 0)

5+ Year Member Top Contributors Of The Month



Okay,Thanks for the reply. If you know can you suggest a good redirection plugin.

Also if do this option, if any problems are occurred just curious to know this?
.htaccess domain level 301 redirection with plugin redirect for important 4 or 5 HTML pages to WordPress pages.

not2easy

1:55 pm on Jun 1, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I am sorry but it is not clear whether this move is all on the same domain or if the WordPress installation is on a different domain but that can make a difference in the ideal way to handle the changes.

If by
.htaccess domain level 301 redirection
you mean redirecting all of the old URL requests to the new WP domain's homepage, then no, do not do that. You should never 301 all pages to one URL. A 301 rewrite should be designed to land all requests for the old page to the new equivalent page without multiple redirects.

If you are handling the migration with .htaccess, you might want to try looking through the Apache Forum [webmasterworld.com] here for pointers or start a discussion there. ;)

mariya

2:11 pm on Jun 1, 2020 (gmt 0)

5+ Year Member Top Contributors Of The Month



not2easy,
Thanks for the reply
We are using the same domain, and redirecting all of the old URL requests to the new WP domain's matched urls.

not2easy

2:53 pm on Jun 1, 2020 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Thank you for the extra information. It is easier when they are all in one place.

lucy24

3:46 pm on Jun 1, 2020 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



82 URLs total? That’s nothing for htaccess purposes. Also consider that any redirect done internally within WP is going to eat up vastly more server resources than even 82 separate lines in htaccess. Just remember that everything has to go before the WP section of your htaccess.

Make sure you also have an HTTP-to-HTTPS redirect for URLs that are otherwise correct. Some legitimate robots insist on requesting HTTP first, even for URLs that were not created until after the site went HTTPS. And some humans may well type-in the wrong form.