• I can’t access the admin page of my client’s website, becuase example.com/wp-admin redirects to another url – i.e. anotherwebsite.com/wp-admin. However I CAN access the login form if I type in example.com/wp-login.php. I can’t seem to fix it. The website itself seems fine, it’s just the login form. Here’s what I’ve tried so far:

    – I’ve checked the .htaccess file, that’s fine, no redirects in there.

    – I’ve added define(‘WP_HOME’,’example.com’);
    define(‘WP_SITEURL’,’example.com’);
    to the wp-config, but no change.

    Any hints?

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you believe there as a security breach then follow the steps listed below in this link!

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

    Go to your database, and find the table called wp-option, then change option value of home and siteurl to mysite.net

    Thread Starter jaspn

    (@jaspn)

    @zota. Thanks, but both of those rows show the proper URL. Any other hints?

    @jaspn you need to do a litile detective work.
    can you chek error_log in FTP if you have any .
    chek your website for any code injection?
    maybe you have blank spaces at the top and bottom of wp-config.php, or in functions.php of your theme folder.

    Hi,

    This looks like a redirect directive in the .htaccess file. Can you FTP to your website (or cPanel -> File Manager) to edit your .htaccess file?

    Check for any Redirect 301 commands and remove it (after backing up your .htaccess file.

    If that works, follow the steps mentioned by David to secure your site.

    Thanks,
    Ramesh

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't login because of redirect – hacked?’ is closed to new replies.