• Hi there! My website redirects to a completely different URL: https://mnskp.nl/wp-login.php?redirect_to=https%3A%2F%2Fmnskp.nl%2Fwordpress%2Fwp-admin%2F&reauth=1 when I want to go to /wp-admin

    The problem I think that caused it is that I changed the WP url in General Settings to mnskp.nl instead of mnskp.nl/wordpress.

    I tried basically everything within my knowledge, but sadly it’s limited. I tried multiple times to force the url in config.php, but it didn’t work. I disabled plug ins, that’s not the issue – obviously -. Can someone please help me get back in the dashboard?

    Best regards

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you check your htaccess file through FTP?

    Else use phpMyAdmin or just log directly into the database and look at your wp_options table. Check the following two fields: siteurl and home.

    SELECT * FROM wp_options WHERE option_name IN (‘siteurl’, ‘home’);

    Make sure these fields hold the correct domain information if not change them and check if it works.

    Thread Starter Elke1987

    (@elke1987)

    Hi! Yes I can check htaccess, nothing seems wrong with it:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Other problem is I can’t seem to log in to phpMyAdmin :(. I tried most of these tips here: https://codex.wordpress.org/Changing_The_Site_URL

    Although I don’t really know what is meant with the relocate option in config.php or the options given for the themes (is it really the theme? Or in wp-includes?) functions.php.

    Now the site actually states it failed to make a database connection… :/ Blimey, I’m fffd haha.

    You need to change the urls back. If you have a look at Changing_The_Site_URL you’ll see that you can do this – without logging in or having access to the database – by editing your wp-config.php file or wp-content/themes/current-theme/functions.php file. to achieve this, you will need to FTP into your site (or use whatever file management application your host provides), download the file you have opted to edit, make the changes using a plain text editor (like Notepad) and uploading the amended file.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp-admin redirects to wp-login wordpresswp-admin&reauth=1’ is closed to new replies.