Fix .htaccess for WordPress

Im trying fis htaccess for working correct with WordPress.
I will need redirect front side to https:// but administration I need use on http://

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# BEGIN WordPress
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

This code working well on frontside where I get https://
but in wp-admin I get https:// also.
Can you please help me make exception in /wp-admin and dont redirect to https://

I need http:// in /wp-admin

Thank you.
Best Regards

Read more here: Fix .htaccess for WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *