Viewing 4 replies - 1 through 4 (of 4 total)
  • Please enable the WordPress debug log. This will allow us to see if any PHP errors are being produced.

    1. Edit wp-config.php and insert the following lines:


    define( 'WP_DEBUG', true);
    define( 'WP_DEBUG_LOG', true);
    define( 'WP_DEBUG_DISPLAY', false);

    2. Reproduce the issue.
    3. Locate the debug log in: /wp-content/debug.log
    4. Paste the latest lines here. No need to paste the entire log file. Just 20 lines or so will do. Please censor any sensitive information.

    https://codex.www.ads-software.com/Debugging_in_WordPress

    Thread Starter HJ

    (@coach-henk)

    There is no debug file when I add the lines and reproduce the error. I just get redirected…

    I have the same issue on different WP sites with different themes and plugins.

    • This reply was modified 1 year, 7 months ago by HJ.

    Hi there,
    Could you check your .htacess file and let me know if you found any redirect code there? Or even you could rename the file to something else (ex: .htaccess-bk) and then save changes the permalink settings from Dashboard > Settings > Permalinks.

    Give it a try, and let me know how that goes! ??

    Thread Starter HJ

    (@coach-henk)

    It doesn’t do anything, I get the same result with
    ====
    RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
    ======

    In the subdirectory the last line of the .htaccess changed to:
    RewriteRule . /subdirectory/index.php [L]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘https://www. redirecting to login page’ is closed to new replies.