“Not found” issue with WordPress

wordpress logo Not found issue with 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]

# 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!

Author: Jonathan Jones

I first first started creating websites back in 2005. This led me to creating a free web hosting business in 2007, which still exists today. I ventured into creating types of websites such as blogs and forums using Wordpress, vBulletin, Invision Power Board, Drupal and Joomla. I've since worked on some of the leading brands in the UK finance sector, in the Search Engine Optimisation (SEO) field, and now work for MoneySuperMarket, the #1 price comparison website in the UK. Social: Google+ and Twitter.

Share This Post On


  1. Hello,

    My site was blocked from hackers by Better WP Security so it locked me out from logging into my admin which is what it is supposed to do but I couldn’t figure out how to get back to my admin page. Ran across your site and saw this fix and it worked man. I really appreciate it because I thought I was going to have to totally reload my site but your article saved me from that. Thanks again man I really appreciate it.


    • Hi Robert,

      I’m glad that this fixed your issue. I also noticed that WordPress kept overwriting the .htaccess file, and I never found out why. I just kept pasting in the above .htaccess to fix the issue until the persistence stopped.

      p.s. When you become a millionaire – don’t forget that I saved you the trouble of re-uploading WordPress. 😛



    • Hopefully by your use of “had”, my solution worked! 🙂

  2. Hi I recently had this issue for the first time and I followed your example. But since then its happened twice more and to be honest I’m getting a tad fed up of having to keep adding a new .htaccess file to root. Is there another way which will stop this for good? It should nt have happened in the first place.

  3. Hey Jonathan, I also used Better WP Security and since have deleted it because it seem

    to cause me too many issues. Now, my problem is I can’t log in my WP site. I get the

    “Not Found”issue. Where exactly do I insert the .htaccess: into the directory? Advance

    +htaccess generator+ ?


    • Hi Kelvin,

      You should upload the file into the root directory of your WordPress installation!

      So when you upload the file it should be accessible (if the CHMOD settings are 777) like this:

      (This is not accessible as you obviously don’t want people spying in on how you’re setting up your website) So you should have this file in the same location as /wp-config.php!

  4. Hey Jonathan,

    Since I am not good in getting this type of information at a quick glance, can you please elaborate this whole process step by step

  5. Hi , It sometimes happens when there is a problem in one of your plugins ..
    to solve this you have to detective all your plugins, and the easiest way to do that is to rename the plugins folder in Wp-content to something like pluginsold , then try to enter your wp-admin , after that change the plugins folder name back to plugins and update all your plugins and themes.

    hope this will help some of you guys 🙂

    • to Ahmad: that does the trick. Thank you.