to dirprocess: wordpress admin access problem                                            rev 5 apr 2022

Category: wordpress

⇒  On this page: problem↓  solutions↓   links↓

.........................
✶ the problem:

  Front end of site is fine.
  Can't access wp-admin.
    - "too many redirects'
    or
    - 'white screen of death'
    or
    - 



.........................
✶ possible solutions/steps:

  - Clear browser cookies, cache, saved data, Cloudflare cache.

  - wp-config.php :
      define('WP_HOME' ,    'https://foo.com');
      define('WP_SITEURL' , 'https://foo.com');

  - disable .htaccess

  - wp-config.php
      if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
         $_SERVER['HTTPS']='on';
      For one commenter, this only worked if it was at the top of the file.
      For another commenter, didn't help any.
      Try in additon, adding the following:
      wp-config - before the above code:
         define('FORCE_SSL_ADMIN', true); 
      and/or: 
      .htaccess : 
         SetEnvIf X-Forwarded-Proto https HTTPS 

      https://wordpress.stackexchange.com/questions/302965/too-many-redirects-only-when-trying-to-access-wp-admin-page
      [may 2018]

   - cloudflare:
       Set SSL/TLS encryption mode to Full.
       [dec 2019]


.......................................................
➽  links and resources: 

  * Too many redirects" ONLY when trying to access wp-admin page
      Good description, and gives solutions.
      Links to related questions in right sidebar.
      apr 2022
      https://wordpress.stackexchange.com/landing/r/digest?cta=question&id=302965

  * WordPress redirect loop in ssl: 
      https://sharpten.com/blog/2018/01/17/wordpress-stuck-many-redirects-error-loop-using-ssl.html

  * WP admin over SSL:
      https://wordpress.org/support/article/administration-over-ssl/

  * WordPress plugin "Cloudflare Flexible SSL"
      https://wordpress.org/plugins/cloudflare-flexible-ssl/
      [still supported feb 2022]

  * Can't log in: "ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress." 
      https://wordpress.stackexchange.com/landing/r/digest?cta=question&id=166181
      [apr 2022]


_______________________________________________________
begin 5 apr 2022
-- 0 --