如何停止在htaccess文件中提升WordPress代码?

Everything I wrote in my htaccess file before # BEGIN WordPress is being immediately pushed after # END WordPress.

I'm not talking about code overwriting by WordPress.

So, it's a problem because my code for forcing SSL isn't working if it's not placed on the top of the htaccess file. And every time I put it on the top and close htaccess file, it's being pushed under default WordPress code for permalinks. It's the same for every code I use in htaccess - it's being pushed under the WP code.

Does anyone know why and how to stop it? P.S. I don't need a solution to stop WP from writting in htacces. Also, I will clarify that all my code is inside my own brackets!