bad-redirect login

Lately, my htaccess file redirects me

I can not login

wp-admin=same result


  • Rupok
    • Support Ninja

    Hi Bubba, hope you had a wonderful day.

    It's tough to find out why this is happening without seeing your .htaccess file content. Can you please share your .htaccess file content here so we can have a look and try to resolve the issue?

    Moreover, can you turn on debug mode in WordPress? To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

    define('WP_DEBUG', true);

    In order to enable the error logging to a file on the server you need to add yet one more similar line:

    define( 'WP_DEBUG_LOG', true );

    In this case the errors will be saved to a debug.log log file inside the /wp-content/directory.

    Depending on whether you want your errors to be only logged or also displayed on the screen you should also have this line there, immediately after the line mentioned above:

    define( 'WP_DEBUG_DISPLAY', false );

    The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.

    Past errors here. If file is very long, paste them to a text file and attach with your reply.

    Have a nice day. Cheers!

  • Bubba
    • Flash Drive

    htaccess file: (I Use this one first)

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    # BEGIN WordPress
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress
    # END WordPress

  • Rupok
    • Support Ninja

    Hi Bubba, hope you had a wonderful day.

    Your .htaccess file content doesn't match with default WordPress .htaccess. Can you take a backup of your current .htaccess file and upload default one? I've attached default WordPress .htaccess file with this reply. Download then unzip and you will get the file.

    Please let us know if it doesn't work. We will be glad to investigate further.

    Have a nice day. Cheers!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.