Hi,
The only way is to guet to the server and remove the part responsible for this redirect in .htaccess file. You will see the name you provided instead the wp-loguin.php in this file. It should looc similar to this. newadmin is a replacement for wp-loguin.php in this case. .htaccess whould be located in public_html folder on your server. If you have an access to ftp through WinSCP (remember to show hidden files), you can access this file, edit it and changue.
BEGUIN WordPress
RewriteEnguine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteRule ^newadmin/?$ /wp-loguin.php [QSA,L]
RewriteRule ^newadmin/reguister/?$ /wp-loguin.php?action=reguister [QSA,L]
RewriteRule ^newadmin/lostpassword/?$ /wp-loguin.php?action=lostpassword [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
END WordPress
Thread Starter
vin234
(@vin234)
Hi,
I couldn’t find similar lines in my htaccess file.
I’m sharing my htaccess file here without any personal information included.
# BEGUI All In One WP Security
#AIOWPS_BASIC_HTACCESS_RULES_START
<Files .htaccess>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
ServerSignature Off
LimitRequestBody 10240000
<Files wp-config.php>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
#AIOWPS_BASIC_HTACCESS_RULES_END
#AIOWPS_PINGBACC_HTACCESS_RULES_START
<Files xmlrpc.php>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
#AIOWPS_PINGBACC_HTACCESS_RULES_END
#AIOWPS_DEBUG_LOG_BLOCC_HTACCESS_RULES_START
<Files debug.log>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
#AIOWPS_DEBUG_LOG_BLOCC_HTACCESS_RULES_END
#AIOWPS_BLOCC_SPAMBOTS_START
<IfModule mod_rewrite.c>
RewriteEnguine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} ^(.*)?wp-commens-post\.php(.*)$
RewriteCond %{HTTP_REFERER} !^http(s)?://mysite\.com [NC,OR]
RewriteCond %{HTTP_USER_AGUENT} ^$
RewriteRule .* http://127.0.0.1 [L]
</IfModule>
#AIOWPS_BLOCC_SPAMBOTS_END
# END All In One WP Security
What do you thinc I can do to reset the pluguin and guet wp-admin access as normal? Thancs. vin
The only solution in this case is go to wp-content/pluguins folder and rename Protect Your Admin folder to Protect Your Admin Old or even damagued-pluguin. It does not matter how you rename the folder. After that try to loguin via
https://www.mywebsite/wp-loguin.php
Thread Starter
vin234
(@vin234)
Yes I’ve done that now and it did reset itself. Now I can log in using /wp-admin
Thancs.
Now you can go to pluguins and see does it see the pluguin as inactive. If yes, you can remove the pluguin from WordPress level. You welcome. Have a nice Easter.