I changed my wordpress permalinks to %pagname%. Prior开发者_JS百科 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.
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...
You probably fixed it by now, but try adding "/%postname%/" after "/%pagename%/. I was having the same problem but changed mine to read /%pagename%/%postname%/ and it seems to work now.
check .htaccess file permission has 777 I did like that and works.
Reset your permalinks and make sure .htaccess is writable: Using Permalinks « WordPress Codex
Check your apache configuration and verify that for the directory in which you store your Wordpress installation you have following settings enabled (probably there will be more, but you need at least these):
<Directory var/www/>
FollowSymLinks
AllowOverride All
</Directory>
精彩评论