benkling
Member
Posted 3 years ago #
My site: http://blog.benkling.com/
For some reason, all of the post pages are 404's!
The posts still exist though, because when I go to edit them, the text is still there.
I just can't preview them or view them after I've published them.
Additionally, I just found out that none of the tag pages exist as well.
http://blog.benkling.com/tag/philosophy/ for example, is a 404!
As is http://blog.benkling.com/author/admin/ !
Please help!
Your permalinks are messed up. Did you recently do an update/upgrade?
benkling
Member
Posted 3 years ago #
I've upgraded several times since it's happened.
Do you know how to fix it? My permalink settings say that's the right format.
Some hosts do not recognize new .htaccess files immediately. Which is why I asked if you upgraded recently.
These should lead you in the right direction.
Check out this thread:
http://wordpress.org/support/topic/225872?replies=4
And this section of the codex:
http://codex.wordpress.org/Using_Permalinks
benkling
Member
Posted 3 years ago #
oh, well it's been like this for over a month, so I'm not sure if it's an .htaccess updating problem.
I switched to "pretty" permalinks a while ago and they worked well for a god amount of time. These posts were previously accessible at those URLs.
Now, even when I use the "ugly" format (blog.benkling.com/?p=12 for example) it tries to load the "pretty" version and gives a 404.
Also, would an htaccess problem affect http://blog.benkling.com/author/admin/ ?
Have you reset your permalinks backs to "ugly" in your dashboard? Or are you manually typing in blog.benkling.com/?p=12 in your address bar?
Try activating the default theme, uninstalling any plugins you may have, and refreshing your browser.
benkling
Member
Posted 3 years ago #
I just changed it back to ugly and all the links work. Then I changed it to pretty and they no longer worked.
Am I stuck with ugly?
No, something might be wrong with your .htaccess file which is preventing WP from being able to write the pretty urls or something is messed up in your WP re-write files. Typically it's a .htaccess issue.
Check your .htaccess file, what's in it? It should look something like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
# END WordPress
Also, make sure WP has access to it and can write to it.
benkling
Member
Posted 3 years ago #
Ah I got it! Thanks!
Somehow, my .htaccess from my main site got into the wordpress directory.
I replaced it with what you provided, and it works great.
Thank you for your patience and insight!
Hey no problem! Glad I could help.