• When I try to access the administration portal I get a 404 not found page.

    Things I’ve tried:
    1. Disabling all the plugins & Using default theme.

    This did nothing… I still get the 404 not found page when trying to login to the site.

    2. Deleting .htaccess

    Upon doing this I get a forbidden on the login page. I’ve then reset the file permissions and still get a forbidden.

    3. Adding siteurl and homepage url into wp-config

    This did not work either. This caused other issues on the site itself. I removed it.

    4. Putting wordpress into debug mode to find issue.

    I only get Force SSL is not constant notice. I’m not using SSL on this site and set both to false however that does nothing.

    5. Manually updated wordpress to newest release

    Followed the guide to a T and it did nothing for me.

    I’m kind of stuck on what to do next. I’ve been searching everywhere to find a fix. Any help would be appreciated.

    Site: easttroylions.org
    /wp-admin redirects to: https://easttroylions.org/wp-login.php?redirect_to=http%3A%2F%2Feasttroylions.org%2Fwp-admin%2F&reauth=1

Viewing 15 replies - 1 through 15 (of 26 total)
  • Just tried to load your site.

    Looks like the theme is forcing SSL. Contact the theme developer for help. If this is not the case, you must have a force ssl plugin installed. go into your ftp server and delete the directory for the force ssl plugin and see if that fixes the problem.

    Let us know if either of those two things help.

    Thread Starter johnathonb

    (@webriot)

    Hi Davood,

    Thanks for the response…

    I have disabled all the plugins and switched the theme via phpMyAdmin and still had the same results. I will investigate further but wanted to mention that both of those did not fix the issue of logging into the admin panel.

    I will investigate further but those two things should have ruled out the theme and plugins I believe.

    Check the db to see how the site_url and home_url are set correctly to use HTTP or HTTPS based on your setup.. only use https if you have an SSL certificate installed on the server.

    Thread Starter johnathonb

    (@webriot)

    Hi Davood,

    Both attributes are set correctly.

    Okay, and are both set to HTTP or HTTPS?
    I am just curious

    Thread Starter johnathonb

    (@webriot)

    Both are set to HTTP. I have not personally configured anything in this wordpress environment to use HTTPS and I do not currently have a certificate on this instance. (will be installing wild card soon but would like to login to my admin portal first)

    I am right now verifying all the file permissions once again on wp-admin, wp-content and wp-includes. I have reactivated the theme right now but all plugins are still disabled.

    There might be a redirect in the index.php file that is causing the 404..

    look for code that looks similar to this :

    <?
    Header( “HTTP/1.1 301 Moved Permanently” );
    Header( “Location: https://www.new-url.com” );
    ?>

    Look for an htaccess file in the wp-admin directory.. if that code is in any of the index.php files or there is an htaccess in wp-admin delete it.

    Also, check if any the main directory or wp-admin has an index.html… if so delete it. 301s can be added in any of those places.

    Thread Starter johnathonb

    (@webriot)

    1. I don’t see anything in the index.php file referring to Header( “Value” );

    2. No htaccess in wp-admin which is good

    3. No index.html in the main directory.

    One thing I find bizarre, when I delete the .htacess file obviously the permalinks break but site.com/wp-login.php goes 403 forbidden. Permissions are set to 644 on the file.

    Maybe that’s normal.. Still investigating.

    check for an index.htm or index.html file in the wp-admin directory as well.

    check for the php code in the wp-login.php file as well.

    If you don’t mind my asking, who are you hosted with?

    Thread Starter johnathonb

    (@webriot)

    To clarify I have tried to replace the files with the most up-to-date WordPress version. I’ve looked through both wp-login.php’s (sites and most recent) and both seem to match.

    I am currently hosted on a reseller hosting instance that I am currently in the process of deprecating. I am pretty close to exporting the SQL database and files and moving to a LAMP box to see if this has anything to do with the shared hosting I am currently on.

    I ran into this issue about 6 months ago when WordPress updated and I resolved it by deleting and recreating the .htaccess but this bugger seems a bit more tricky.

    • This reply was modified 7 years, 10 months ago by johnathonb.

    Sorry, I missed the fact that you had done a manual update. I just read your original post again.

    I’m looking for other solutions myself. Will keep you posted on what I find.

    I know your plugins are all disabled… However sometimes that isn’t enough if a plugin is causing the problem. Would you please share a list of what plugins you have in the wp-plugins directory?

    Thread Starter johnathonb

    (@webriot)

    Thanks, I really appreciate the help.

    • This reply was modified 7 years, 10 months ago by johnathonb.

    Did that little hint about the plugins help you nail issue down?

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘wp-admin & wp-login.php 404 not found’ is closed to new replies.