0

I’m going to relocate to https and to do some modifications of my site. One of them is to change addresses of some pages. For example, the following pages

http://site.com/dir/pageone.php,
http://site.com/dir/pagetwo.php,


will have new address

https://site.com/pageone.php, 
https://site.com/pagetwo.php

...
Search engine expert told that I should have the following chain of 301 redirects:

http://site.com/dir/pageone.php ->
https://site.com/dir/pageone.php ->
https://site.com/pageone.php.

the same for the rest pages …
It is possible to set the first redirect (http -> https) in hoster settings of my account. Doubtless the second redirect must be done in .htaccess. If I write in .htaccess the following

Redirect permanent /dir/pageone.php https://site.com/pageone.php

as I understand .htaccess will redefine hoster settings and there will be only one redirect

http://site.com/dir/pageone.php ->
https://site.com/pageone.php.

Tell me, please, how can I define two redirects according to search engine expert instruction?

  • welcome ... this site is for software recommendation ... it is not for resolving problems with existing software – jsotola Sep 1 '19 at 19:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.