Jun 05 2008
WordPress 404 Not Found Problem
I stayed up late last night and was up early this morning. But it didn’t help with my WordPress blog’s ’404 Not Found’ problem.
Actually it happened yesterday afternoon when I installed a plug-in that tampered with my .htaccess file. The install document was so badly written in some sort of English that in the end I was driven nuts and uninstalled it. I manually removed the part that it inserted into my .htaccess, but didn’t realize I probably mistakingly deleted/altered some of the old codes along the way.
The home page looked fine but all permalinks returned a ’404 Not Found’ error – and I didn’t find that until this morning when I checked visitor statistics! If you experience a similar problem, i.e. you can visit the home page of your database driven site (not necessarily WordPress) but each individual page returns a ’404 Not Found’ error, check your .htaccess file. It’s not your database problem.
![[Bloglines]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/bloglines.png)
![[del.icio.us]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/facebook.png)
![[Furl]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/furl.png)
![[Google]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/google.png)
![[Ma.gnolia]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/magnolia.png)
![[MySpace]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/myspace.png)
![[Newsvine]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/newsvine.png)
![[Reddit]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/reddit.png)
![[Sphere]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/sphere.png)
![[StumbleUpon]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Technorati]](http://www.yeasir.com/blog/wp-content/plugins/bookmarkify/technorati.png)
can it support chinese character now?
Reply
Jianjun reply on July 10th, 2008 4:15 pm:
Yup WordPress supports Chinese.
Reply
So what am I looking for as this is exactly what is happening to me and I was about to do a database export, move to new server, etc to try and get this fixed.
Reply
Hola, tengo un problema con mi blog WordPress NO tiene salida por Internet… ¿Qué sucede y que puedo hacer?
Gracias
Reply
I have exactly the same problem…but I can’t find the .htaccess file – not too good with databases! Where do I find it??
Reply
Jianjun reply on February 6th, 2009 3:56 pm:
The .htaccess file should be under the ROOT directory. Your host should be able to help locate it. Good luck.
Reply
I’m having the same problems on a WP-based website I’m building… .htaccess file is fine, it looks exactly the same as in another WP blog I have. Any thoughts?
Reply
Oh man, this post saved my life! Thank you for this.. I had the same problem and was beginning to freak out.
Reply
In my case after a move of my site, I checked and double checked and it was NOT the .htaccess
instead, the new apache httpd.conf had:
AllowOverride None
I changed it to:
AllowOverride All
and did an apache stop/start. Problem solved, and the .htaccess started applying again.
Reply
Thanks for this. I only wish I would have found your post before trying everything else. I have posted your link in delicious in hopes that the next guy will find it sooner. Thanks again, Bg
Reply
Quote: “In my case after a move of my site, I checked and double checked and it was NOT the .htaccess
instead, the new apache httpd.conf had:
AllowOverride None
I changed it to:
AllowOverride All
and did an apache stop/start. Problem solved, and the .htaccess started applying again.”
Question: Where do I find this file. Under what root? I have the same problem.
Reply
I had it as well from a plugin called redirection.
At first I thought it was the theme since when I switched my theme to the classic wp theme, everything worked find, but no matter what other themed I tried to install other than that it will give a 404.
Finally I started playing with the plugins and I found out it was that.
Reply
I deleted my .htaccess (WP automatically replaces it) and upated my permalink structure to fix this problem.
Reply
Thanks to Ross for the idea about updating the permalinks. I found myself having the same problem and freaking out about all but the home page being 404′d. What I did was deactivate all the plugins- didn’t work. Changed the theme to one of the basic themes included in WP. Nope, same problem. Activated the desired theme, went to on of the pages and clicked update. This worked. Whew.
Reply
Correction from last post:
I had the same problem and changed this under the permalinks tab:
/%category% %postname%
To this
/%category%/%postname%/
Reply
In my case, i got 404 because of the permalinks. To fix this, just:
In your Permalinks options, set your “Custom Structure” to
/%category%/%postname%/
and your “Category Base” to
/.
Reply
Just ran into this issue using WAMP, simply check the ‘rewrite_module’ under the Apache -> Apache Modules menu and the problem evaporates.
Reply
I have exactly the same issue. I am new to wordpress and have the following in my .htaccess file
# BEGIN WordPress
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
I have set it to 666
I have my permalinks set at /%category%/%postname%/
I have my site hosted on 1and1
All my catagoy links get 404 errors !!
I have hardly slept from tyong to figure it out over the last 3 days.
Can anyone help ?
Reply