The SSL admin and login redirection should be done through the FORCE_SSL_ADMIN constant in wp-config.php:
define('FORCE_SSL_ADMIN', true);
For further information: Administration Over SSL
Aditionally, if you want be redirected to http when you’re logged and in the frontend, take a look at:
Redirect WordPress front end https URLs to http without a plugin
Related Posts:
- Force HTTPS using .htaccess – stuck in redirect loop
- How to redirect url requests to https? [closed]
- https multiple redirects
- What is the right way to redirect all traffic to HTTPS?
- ReDirect subfolder link to another sub-folder and force SSL
- Why is WordPress redirecting from http to https on a local environment?
- Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
- Redirect www to non-www htaccess
- 302 redirect instead of 301 after switch to HTTPS
- WordPress redirect loop on nginx + apache reverse proxy
- Redirect from https to http or from http to https? [closed]
- Redirect to https not working with .htaccess [closed]
- RedirectMatch and Redirect interfering with each other
- Mixed Content with SSL, wordpress behind a reverse proxy
- Menu links only using http after enabling https, unable to redirect http links
- Why specific file directory fails to redirect but its parent folder succeeds?
- some url does not redirect from http to https
- https redirect (with .htaccess) redirect loop
- Redirect home to another page with htaccess
- WordPress Redirecting HTTPS Requests to HTTP
- Infinite loop behind SSL proxy on non-standard port
- SSL and www to non-www redirection works only on homepage – WordPress
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- 301 redirection editing .htaccess doesn’t work
- Redirections and rewrites to subdomain
- WordPress keeps redirecting subpages without http to https homepage after switch
- How to use https on one page only?
- .htaccess 301 redirect conflict with plugin “WordPress Https”
- WordPress CSS/Theme gone after SSL got activated
- My site doesn’t redirect from HTTP to HTTPS
- Redirect old query string URLs to new add_rewrite_rule URL
- Only execute function if SSL is set up properly
- ErrorDocument 410 gives me back a 302 header
- Understanding Redirects
- How to create multiple Rewrite-Rule for various site in single htaccess?
- WordPress site not forcing from http to https instead getting redirected too many times
- I get “too many redirects” problem when migrating localhost site
- Redirect HTTP request to HTTPS request
- Cannot get 301 redirection in htaccess to work (either Redirect or Rewrite)
- Moving site from HTTP to HTTPS
- htaccess and redirect to new url using regex
- How to force HTTP and stop SSL completey on WordPress website
- How do you redirect HTTPS to HTTP?
- Non-WordPress page in subdirectory under WordPress page
- Keeps on redirecting on my development copy
- Redirecting old permalink to new one
- Problem to redirect custom page using htaccess
- htaccess redirect not working
- htaccess wildcard redirect misses some URLs
- Why wordpress multisite redirect to wp-signup if site exists?
- How to do 301 redirect to Sub page using htaccess file?
- WWW to non WWW redirect effects on load speed
- Custom rewrite rule
- Redirect HTTP to HTTPS
- Deny access to a path (give 403 or 404 response)
- htaccess 301 redirect http to https doesn’t work
- Site redirecting from http to https [closed]
- 301 Redirect Loop
- Use htaccess to redirect WordPress to static website in a subfolder
- Redirect from sub-directory to root – New WordPress 5.2.3 Set up
- Transfer to HTTPS – mixed content on main page only [closed]
- .htaccess rule to redirect old URLs to new structure [closed]
- How to redirect URL with subfolder to the same URL but without subfolder?
- .htaccess Redirect
- Site loads very slowly (4-5 minute load time)
- HTTP sitewide, except for: wp-admin, and 2 custom directories
- How can I redirect a URL to an anchor link while maintaining the URL?
- How to remove duplicate and unnecessary part in a url using htaccess and regex?
- 503 Service Unavailable error was encountered
- Built-In Postname Redirection vs Hard Redirects in relation to SEO and performance
- https – too many redirects
- Redirect “http://old.net/category/postname” to “https://new.com/postname”?
- Image URLs not redirecting properly
- 301 Redirect Old URL to New WordPress Page
- How to remove the [L] Flag for WordPress index .php mod_rewrite
- URL masking of subdomain to main domain using .htaccess
- What is the most efficient (ie. less server intensive) way for 301 redirects?
- Will deleting WP’s code in .htaccess cause problems?
- Create a permalink to a pdf?
- How can I redirect a request to the site root using htaccess, if there’s not a specific cookie set?
- How to redirect multiple subfolders back to root domain?
- How do I Redirect Tags from Old Joomla Site to New WordPress Site?
- Mass .htaccess URL Forwarding
- Redirect posts to new domain
- Browsers Forcing Multisite to https
- Is it possible to change redirect template through a shortcode?
- How to make front page temporarily show content of internal page
- How to force the admin-ajax.php file to load over HTTPS?
- home page redirect loop after update to 4.8
- Resolving the too many redirects on wordpress
- 301 Redirects when change URL in WordPress database
- Redirect wordpress website URL into other link
- What’s the best way to redirect to a new wordpress website?
- Redirect old .html URLs to a new installation in a subfolder
- How to move a https website back to dev and access the admin?
- WordPress 302 Redirect to Holding Page
- Rewrite rule to redirect to a particular filename.php
- Redirect a WP to another with all URL
- Redirect ignore last URL segment
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error