I've got a website thats having problems (its been untouched for a few months so not any changes that were made to break it)

when logging in the login page is unstyled, sitting in the top left corner. I can login ok, but when I try to access dashboard or any /wp-admin/... pages I get a 404. (site loads fine for public content)

I've searched and tried everything I can.

disabled all plugins, default theme new .htaccess phpmyadmin to rename site address

Has anyone experienced this before and have any more ideas?

  • Can you confirm if you are using any plugins for your login page? Some plugins have an option to display an error page if a anyone tries to access site-name/wp-admin and might have changed the link for dashboard. Since you've tried disabling every plugin we can null that out for the time being, i guess. Do you have FTP access to your website? If so did you check if a folder named wp-admin exists? – Gopikrishna K Jan 24 '18 at 20:57
  • 1
    When you say 404, are these broken URLs? Correct URLs that just don't work? What happens when you visit them directly? Have you confirmed the files exist in the file system? What happens if you take a fresh copy over WP and drop it over the top? Does the problem go away if you disable all plugins and use a default theme? – Tom J Nowell Jan 24 '18 at 21:08
  • Hi there, Yes all plugins were disabled and same problem. Just checked and wp-admin folder exists and looks like everything is there. – Monk Jan 25 '18 at 1:44
  • Do you have access to yourdomain.com/wp-login.php ? If so try logging in and accessing the dashboard. If thats working try changing your permalinks once. Hope that helps. – Gopikrishna K Jan 25 '18 at 9:47
  • No access to wp-login :( still shows a 404. – Monk Jan 25 '18 at 11:01

Found the problem. There was an unexpected .htaccess file in wp-admin folder with deny from all! not sure how that got there...

Thanks everyone for your help.

  • Don't forget to mark your answer as correct so it doesn't show as unsolved. – Eoin Jan 17 at 15:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.