I changed my wordpress permalinks to %pagname%. Prior to doing this i posted two blog entries (the site is brand new). My static pages navigate fine after the changes but when you click on my posts you get 404'd. Has anyone else had this problem? Thanks.
A:
Reset your permalinks and make sure .htaccess is writable: Using Permalinks « WordPress Codex
songdogtech
2010-03-09 21:14:51
Did both of these things with no luck. I published a new post and that still doesnt link correctly.
Davey
2010-03-09 21:40:08
Both of what things? Reset permalinks in Settings and made sure the changes were written to .htaccess?
songdogtech
2010-03-09 21:42:21
I'm not sure where in the settings there is a reset permalinks option but my .htaccess id writable.
Davey
2010-03-09 21:51:29
We desperately need clarity here. So you make that permalinks setting change directly in .htaccess? Or in WordPress Dashboard/Settings/Permalinks and then edited .htaccess, if/when Wordpress said it couldn't update .htaccess? If you made the change directly in .htaccess, then Wordpress doesn't know what you did, as it stores permalink settings in the database. If you made the change in Settings/Permalinks, then did Wordpress say the changes were saved to .htaccess?
songdogtech
2010-03-09 22:40:53
Not sure how I could be more clear but here goes. 1. Wrote 2 blog posts. 2.Changed permalinks via dashboard to %pagename% 3.When blog entry links are clicked i get 404'd.
Davey
2010-03-10 02:16:34
Few things funnier than a revenge downvote for an answer that was correct in the first place :)
songdogtech
2010-03-10 03:11:39
Your answer was incorrect. Also I did not downvote you. :)
Davey
2010-03-17 02:51:11
It appears that to "reset" permalinks you just need to choose a different setting (e.g. Default), save changes and then change it back to what it was. I was getting a 404 on my feed URL since upgrading Wordpress but after switching settings like that it now works.
BruceCran
2010-08-28 15:56:17
+4
A:
isn't the permalink structure supposed to be
/%postname%/
with that the posts will have a nice url, and not using pagename, or pagname as you have it? Open your .htaccess file and check if anything is written, if so highlight it all and delete it, wordpress will fall back to the original default state,
then within the admin->settings->permalink section select custom and paste in that, and click save, if wordpress reloads the page and the htaccess info is pinned to the bottom of the page then copy and paste that to your .htaccess file, if its not then its been written to your file already...
Marty
2010-03-09 22:03:50