“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]
</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!
August 19, 2013
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.
Robert
August 19, 2013
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. 😛
Cheers,
Jonathan
February 15, 2014
I also had the same problem.
March 27, 2014
Hopefully by your use of “had”, my solution worked! 🙂
June 2, 2014
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.
July 28, 2014
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+ ?
Thanks
July 28, 2014
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:
http://vlexo.net/.htaccess
(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!
July 28, 2014
To addon to what I’ve currently said:
You’d need to create a .htaccess file, paste what I’ve said to paste into that file (see article) over the your old .htaccess file.
It looks like you have one here:
http://www.pavilioninternationalministries.org/.htaccess
It just needs updating. 🙂
September 16, 2014
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
April 18, 2015
Thank You very much.
April 19, 2015
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 🙂
August 20, 2015
to Ahmad: that does the trick. Thank you.