“Not found” issue when accessing wp-admin for WordPress

“Not found” issue when accessing wp-admin for WordPress

I recently started a few new blogs and I used an automated installer to install WordPress via cPanel. However, when I created the site I noticed a few issues had arisen and that had made it impossible for me to login to “wp-admin” and “wp-login.php”, so I wondered what could have gone wrong, as every time when I tried to access those URLs, I encountered “Not found”, even though the directory does indeed exist. I knew it was a .htaccess issue, so I looked at one of my older blogs where I have none of these issues and copied my .htaccess file into the directory of my new site.

I copied this .htaccess:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>\

# END WordPress

… into my blog’s new directory and the problem was fixed.

If you have this problem then this is most likely the fix!