I’ve had this problem a few times, and the cause can be varied from htacess to permissions error. I always follow a few steps to try to solve:
Step I:
Check if the website URL is correct in the database, you can find it in the table wp_options with option_name: siteurl (is usually the first field).
If the URL is different you can update it using that source of Github inserting the generated code into the field SQL of your data flock, or add the following code to the file wp-config.php:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
and/or code below in the file functions.php:
update_option('siteurl', 'http://example.com');
update_option('home', 'http://example.com');
I usually use the source of github, but when using this second medium I use the two methods to force the exchange, you can check in more detail on Codex.
Step II:
If it is an htacess bug, you can resolve only by updating the site’s permanent link.
Try to access one of the internal "pages" of your administrative panel, such as plugins using this URL:
http://seusite.com.br/wp-admin/plugins.php
If you can access it, go to permanent link or options-permalink (if the language is English), and just update the form saving the changes. This will force your htacess be updated.
Step III:
If the previous steps have not worked, I suggest you move the site to the root if it is inside a subfolder for example "new" or "temp" and try to "re-join" the file .htacess.
In case none of the above works, check the file permission, for folder uses 0775 and for files 0644.
This URL is natural to WP. This is how it sends you to the dashboard after authentication. If you can’t access the admin or the menu has become "disfigured", the problem is not this.
– Caio Felipe Pereira
I’ve been using WP for a long time, and I’ve never seen that. The normal URL to access wp-admin is "site address/wp-admin" The person who messed with the settings said they were trying to change the home page, I believe they have created a permanent redirection to this page because it is the only one that can access
– Amanda Lima
The URL is getting duplicated
– Amanda Lima
in your "strange" url, change
wp-admin&redirect_to
forwp-login&redirect_to
and see if you can log in. Or try to log in directly byseusite.com/wp-login.php
– Caio Felipe Pereira
I can log in, but the panel won’t open, it always redirects to the home page.
– Amanda Lima
You moved your wp place?
– Caio Felipe Pereira
No. My boss changed some configuration, but he can’t tell exactly where it was. Is there any way to access settings other than through the panel?
– Amanda Lima
Let’s go continue this discussion in chat.
– Caio Felipe Pereira