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
- Does WordPress automatically redirect to the URL specified in settings?
- How to redirect all HTTP requests to HTTPS
- How do you redirect HTTPS to HTTP?
- How do I skip wordpress’s 404 handling and redirect all 404 errors for static files to 404.html?
- WordPress Redirect All HTTP requests to HTTPS via .htaccess
- Redirect entire website to a single page
- Stop WordPress and Plugins from Overwriting .htaccess
- htaccess rewrite conflict with wordpress rules and ssl
- Non-WordPress page in subdirectory under WordPress page
- Keeps on redirecting on my development copy
- Redirecting WordPress /.htaccess / HSTS / SSL
- 301 redirect not working through .htaccess
- Site redirects to wrong url when saving settings
- Htaccess redirect from ‘/%postname%.html’ to ‘/%postname%’
- Redirecting old permalink to new one
- Globally force SSL on all pages
- Index in root, wordpress in subdirectory
- Admin-Ajax.php, SSL, Non-SSL
- How disable SSL redirect for specific URL?
- Specific URL has 403 Forbidden status code
- How do I skip wordpress’s 404 handling?
- Problem to redirect custom page using htaccess
- htaccess redirect not working
- htaccess wildcard redirect misses some URLs
- Redirect too many times htacces switching to https
- Why wordpress multisite redirect to wp-signup if site exists?
- How to do 301 redirect to Sub page using htaccess file?
- add_rewrite_rule to pass entire path as a single parameter
- htaccess redirect – directory and subpages to a single page
- WWW to non WWW redirect effects on load speed
- Can WordPress redirect to a “similar page” in case of 404 error
- htaccess redirect dynamic posts
- Hacked website redirect, only on desktop, help with restoring it [closed]
- Custom rewrite rule
- How to modify the .htaccess to force ssl on login and admin pages
- How to hide that a certain non-WordPress directory exists on the server?
- Redirect “any page/page/number/” to “any page”
- url keeps redirecting to a page
- Cant Access Website – Changed HTTP to HTTPs
- WordPress site in subdirectory load site in main directory
- Disabling HTTPS redirection for migration
- How to properly force https and www on multisite with Apache HTAccess
- How to create a 301 redirect that doesn’t apply to subsites
- How to exclude a directory from WordPress permalinks in a Multisite environment?
- Why does multisite bypass WordPress for wp-content, wp-admin, wp-includes and .php files?
- WordPress multisite htaccess redirection to new domain
- Why can’t I access files / directories outside of wordpress
- WordPress blocking/preventing viewing of .cgi file in subdirectory [closed]
- Strange redirection issues on wordpress from ssl with padlock to ssl without padlock
- Redirect blogpage /blog/abcd/ to /blog/
- Redirect HTTP to HTTPS
- How to redirect from various ?page_id= to home page?
- How to set up htaccess to redirect a particular post type or subdirectory to HTTPS?
- How do I map a subdomain in wordpress to the primary domain in a multisite setup?
- 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]
- Redirect all pages except one to homepage via .htaccess