Can't login after site restoration.
-
Hi. I have been through the forums to try to figure this out, but can’t. I had my site restored by my host and the site is up and running now, but I can’t login. I keep getting a 404 page not found error. I’ve tried renaming the theme and the plugins folder, emptying cache and cookies, etc. Nothing is working. Help please!
Thanks.
-
do you have wp-login.php or wp-admin folder in your site root ?
Yes. Both
can you paste the content of the file named htaccess in yur root folder ?
# BEGIN Better WP Security Options -Indexes <files .htaccess> Order allow,deny Deny from all </files> <files readme.html> Order allow,deny Deny from all </files> <files readme.txt> Order allow,deny Deny from all </files> <files install.php> Order allow,deny Deny from all </files> <files wp-config.php> Order allow,deny Deny from all </files> <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^wp-admin/includes/ - [F,L] RewriteRule !^wp-includes/ - [S=3] RewriteCond %{SCRIPT_FILENAME} !^(.*)wp-includes/ms-files.php RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] RewriteRule ^wp-includes/theme-compat/ - [F,L] RewriteCond %{REQUEST_METHOD} ^(TRACE|DELETE) [NC] RewriteRule ^(.*)$ - [F,L] RewriteCond %{QUERY_STRING} \.\.\/ [NC,OR] RewriteCond %{QUERY_STRING} ^.*\.(bash|git|hg|log|svn|swp|cvs) [NC,OR] RewriteCond %{QUERY_STRING} etc/passwd [NC,OR] RewriteCond %{QUERY_STRING} boot\.ini [NC,OR] RewriteCond %{QUERY_STRING} ftp\: [NC,OR] RewriteCond %{QUERY_STRING} http\: [NC,OR] RewriteCond %{QUERY_STRING} https\: [NC,OR] RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [NC,OR] RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [NC,OR] RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|<|>|ê|"|;|\?|\*|=$).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*("|'|<|>|\|{||).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(%24&x).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(127\.0).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(%0|%A|%B|%C|%D|%E|%F).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(request|select|concat|insert|union|declare).* [NC] RewriteCond %{QUERY_STRING} !^loggedout=true RewriteCond %{QUERY_STRING} !^action=rp RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$ RewriteCond %{HTTP_REFERER} !^http://maps\.googleapis\.com(.*)$ RewriteRule ^(.*)$ - [F,L] RewriteRule ^login/?$ /wp-login.php?6hftknndvxffs6trdoqhx [R,L] RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$ RewriteRule ^admin/?$ /wp-login.php?6hftknndvxffs6trdoqhx&redirect_to=/wp-admin/ [R,L] RewriteRule ^admin/?$ /wp-admin/?6hftknndvxffs6trdoqhx [R,L] RewriteRule ^register/?$ /wp-login.php?6hftknndvxffs6trdoqhx&action=register [R,L] RewriteCond %{SCRIPT_FILENAME} !^(.*)admin-ajax\.php RewriteCond %{HTTP_REFERER} !^(.*)mooredesign.org/wp-admin RewriteCond %{HTTP_REFERER} !^(.*)mooredesign.org/wp-login\.php RewriteCond %{HTTP_REFERER} !^(.*)mooredesign.org/login RewriteCond %{HTTP_REFERER} !^(.*)mooredesign.org/admin RewriteCond %{HTTP_REFERER} !^(.*)mooredesign.org/register RewriteCond %{QUERY_STRING} !^6hftknndvxffs6trdoqhx RewriteCond %{QUERY_STRING} !^action=logout RewriteCond %{QUERY_STRING} !^action=rp RewriteCond %{QUERY_STRING} !^action=register RewriteCond %{QUERY_STRING} !^action=postpass RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$ RewriteRule ^.*wp-admin/?|^.*wp-login\.php /not_found [R,L] RewriteCond %{QUERY_STRING} ^loggedout=true RewriteRule ^.*$ /wp-login.php?6hftknndvxffs6trdoqhx [R,L] </IfModule> # END Better WP Security # 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 # BEGIN (mt) controlled settings <IfModule pagespeed_module> ModPagespeed on </IfModule> # END (mt) controlled settings
you having redirection coming from better security plugin
try login here:
http://mooredesign.org/loginThat worked. Thank you! I could tell it was redirecting but didn’t know why. If I delete the plugin, will my login go back to normal?
I don’t know which settings did you use, there is an option the plugin will leave behind custom table in the database or changes to site file system, but if you decide to disable it just check the htaccess file and see if something changed, if not just delete the file content and save. make sure you go to the permalinks menu check for the default option (first one) and save and then choose the option you want for your permalinks.
It did reset the htaccess and old login works now. I can’t thank you enough!
Glad to help
- The topic ‘Can't login after site restoration.’ is closed to new replies.