I am moving a 180-page non-https html site with http: // www and the non-www version to WordPress and https And changing the URL keywords in an .htaccess file in Apache
Some of the files are http: //www.site.com/keyword-abc.html
And unfortunately some are duplicates of those files but not www. That is, http: //site.com/keyword-abc.html
So I need to manually find some way to enumerate the html files
And redirect it not only to https but also change the URL after the domain name as
I don't want to use a WordPress plugin to do it, but an .htaccess file in Apache.
I know I will have to write a line of code or two for each URL that I want to change.
How do I write the code to move the http www and not www URLs to https and totally different keywords in the htaccess file and not have redirect strings?
Does it matter if I do the http: //www.site.com/keyword-abc.html first before the http: //site.com/keyword-abc.html in the redirect?
If I put a space between each URL change so I can see and fix it more easily, will that affect the speed of redirects or cause a problem?
I have reviewed many tutorials for .htaccess and have never seen any of them that have an unsecured www to redirect https, and an http: // no www to redirect https and different keywords in the new URL after the domain name
I think the difficult part is the different keywords after the domain name, but I have already created the site with those URLs.