WordPress.org

Support

Support » How-To and Troubleshooting » wp-admin and wp-login.php redirecting to 404 error

wp-admin and wp-login.php redirecting to 404 error

Viewing 15 replies - 1 through 15 (of 17 total)
  • esmi

    @esmi

    Forum Moderator

    Try resetting your custom permalinks to the default setting and deleting/renaming the WP root .htaccess file. If that works, then set your custom permalink structure back up again.

    esmi
    deleting the .htaccess throws a 500 error and how can I try the change on the permalinks with out access to the wp-admin area?

    esmi

    @esmi

    Forum Moderator

    What’s in your .htaccess file?

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    that is the only thing in the .htaccess

    Hi,

    Disable all the plugins and add this code in htaccess:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thanks,

    Shane G.

    same issues still not showing the admin login screen

    esmi

    @esmi

    Forum Moderator

    There’s nothing untoward in your .htaccess file. Have you tried renaming your current theme’s folder so that the default theme activates? Just in case this is a theme problem.

    now the site is just showing a white page.
    hum this is not good. wonder if something borked bad when I had all the upgrade problems.
    I do not have an export of the post and pages but I do have backups of my database. how hard would it be to rebuild the install from scratch?

    esmi

    @esmi

    Forum Moderator

    I’d try repairing your database first and re-running the auto-upgrade via Admin/Tools before you start trying to set up a fresh database.

    I was thinking fresh install with the old database. but the main issue is I cannot get in to the dashboard of the site. the site was setup with 2.9 and the upgrade to 2.9.1 was an adventure and a half with all the stuff not working.

    i am having the same issue, already backed up / reinstalled…how do you get into the dashboard without this login?

    esmi

    @esmi

    Forum Moderator

    If the upgrade borked your db, you could simply regenerate the same problems with a fresh install. What you could do is set up a new db, change the settings in wp-config.php to point to the new db and re-run the install script. If that works, then it would seem to suggest that your old db is damaged.

    the only problem I have with that is there is information from a plugin I use in the old database that is used for a directory used on the site.
    that issue aside could I export the needed data from a local backup of the database and import it to the new database and just do a fresh install for everything?

    esmi

    @esmi

    Forum Moderator

    In theory, yes – though image/attachment urls may present a problem.

    no images just the tables and information from the connections plugin. other than that all information is recoverable.

    Esmi I thank you for all your help this afternoon I am going to do the fresh install route tomorrow and rebuild piece by piece until everything is back up.
    any other thoughts before I do that in the AM

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘wp-admin and wp-login.php redirecting to 404 error’ is closed to new replies.
Skip to toolbar