WordPress Tips: Solving Wp-admin can’t be found

wordpress3This happened to me after I upgraded wordpess to 4.2. Suddenly, WordPress couldn’t find my /wp-admin/ page before. Instead, it brought me to a 404 error page. Now this only happened one on of my blogs, so I knew it couldn’t have anything to do with a corrupted install, since I’d used the same files to upgrade it.

The trouble is actually with .htaccess. A quick workaround was to change the name of .htaccess to .htaccess1, login to the admin panel, and then change it back to .htaccess, because else the permalinks won’t work.

Of course that’s no permanent solution, but it did show that the problem had to do with the permalinks and the .htaccess page. So I manually updated the .htaccess page, deleting its content and adding only this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

This does give WordPress permission to set up permalinks for your websites, but it also got rid of the problem for not being able to access /wp-admin/.

Leave a Reply

Your email address will not be published. Required fields are marked *