How to remove a double redirect?

Good day

Tell me how can I fix the double 301 redirect on one?
Website on wordpress with https

Url - http ://site.ru/oplata/index.php - redirects 301-m in two steps:
a) first 301-m cleans "index.php" - ( it turns out http ://site.ru/oplata/ )
b) in the second step, 301st redirect to https ( it turns out https ://site.ru/oplata/ )

How this can be done in one step?

And the main page will redirected normally, in one step, under the same conditions.
If you installed SEO by Yoast.

The contents htacsess

# BEGIN WordPress
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</ifmodule>

# END WordPress

RedirectMatch 301 /feed https://site.ru

Thank you.
July 8th 19 at 11:45
1 answer
July 8th 19 at 11:47
Solution
To copy a rule to add one more RewriteCond in one of them and of all, Only put higher than the basic rule redirects from http
Victor, thanks for the reply
And can a little more, for example, the contents of my htacsess is in question.
I am afraid as though not to break the rules is already working.
Thank you!
PS
I will explain what confuses me, in my htacsess there are no rules, in relation to https, but the redirect from http to https works, I do not understand how and on what basis, and I think that if now back crawl - 100 pounds breaking) - dariana.Langosh57 commented on July 8th 19 at 11:50
: let's file all .htaccess , there is nothing bad especially for such simple redirects - Lavern_Schuppe commented on July 8th 19 at 11:53
: the fact of the matter is, this is the entire file .htaccess other instructions in it, that its complete content. While a redirect with www on without www, http to https - works. The only problem is that double was redirected (for a detailed description in the question). Sorry for taking your time, but it's full content .htaccess, that I'm able to check)) - dariana.Langosh57 commented on July 8th 19 at 11:56
You support to the host. Apparently in addition to your .htaccess still have the tips level above, which handle http->https, www->non-www and so on. - Velva.Rogahn commented on July 8th 19 at 11:59
: I have to agree you with the support, or, in .vhost in nginx or whatever you have. In short, Places where there may be redirects
nginx
apache
htaccess - do not forget that in the folders, they also can be work
PHP in the code itself - there is as lucky
Even in the engine of the website is able to display such things, but here is the engine.
well, Yes if nginx+apache that here also the configuration of the bundles depends. - Lavern_Schuppe commented on July 8th 19 at 12:02
: : Victor, Igor, thank you very much - dariana.Langosh57 commented on July 8th 19 at 12:05

Find more questions by tags WordPressSearch engine optimizationPHPhtaccess