wp-admin redirect login error
-
Hello,
The front end of my WP site is working fine. However when I go to the back end URL, I am getting a 404 error, with a really long redirect URL.
This is the redirect URL that I see:
/wp-login.php?redirect_to=http%3A%2F%2Fdev.jokefire.com%2Fwp-admin%2F&reauth=1' This is the error that shows in the web browser:
Not Found
The requested URL /wp-login.php was not found on this server.`
I find that if I log into the front end of the site using the admin credentials, and then manually surf to the /wp-admin URL, I can then access the back-end. However the 404 on hitting the back end URL before logging in is annoying me to no end. This 404 simply must be killed!! 😉
This is my wp-config.php file:
<?php define('DB_NAME', 'jokefire'); define('DB_USER', ‘removed’); define('DB_PASSWORD', ‘removed’); define('DB_HOST', 'localhost'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); define('AUTH_KEY', ‘removed’); define('SECURE_AUTH_KEY', ‘removed’); define('LOGGED_IN_KEY', ‘removed’); define('NONCE_KEY', ‘removed’); define('AUTH_SALT', ‘removed’); define('SECURE_AUTH_SALT', ‘removed’'); define('LOGGED_IN_SALT', ' ‘removed’'); define('NONCE_SALT', ' ‘removed'); $table_prefix = 'wp_'; define('WPLANG', ''); define('WP_DEBUG', false); if ( !defined('ABSPATH') ) require_once(ABSPATH . 'wp-settings.php'); ?>
And this is my .htaccess file:
<files wp-config.php> Require all denied </files> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^wp-admin/includes/ - [F,L] RewriteRule !^wp-includes/ - [S=3] RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] RewriteRule ^wp-includes/theme-compat/ - [F,L] </IfModule> RewriteEngine On RewriteBase / <Files .*> </Files> RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT] AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript <files *.html> SetOutputFilter DEFLATE </files>
I’m not seeing any activity in the apache logs (access or error) when I reload the admin page.
Can someone please help me resolve this issue?
Thanks
- The topic ‘wp-admin redirect login error’ is closed to new replies.