I’m getting a 404 when I click permalinks to my posts. I updated the .htaccess
file per the documentation instructions but I still get them. That .htaccess
code is in my /blog/
directory.
In my wp-admin control panel, I have it configured to do “post name” permalinks. The post permalinks work fine when I use the default, but they are 404’ing when I use the “post name” permalink setting.
Background: I’m on Apache/2.2.20 (Ubuntu) Server.
Just updating the .htaccess file would not do the trick. You need to find out if your mod_rewite.c module is enabled. If not, you need to enable it by going to console and typing in this:
and afterwards restart your apache server.
If even that doesnt work, probably your userdir module is not enabled. For this reason you need to enable it
and then try enabling the rewrite module if still not enabled.
You can read up on this further here.
Is your mod_rewrite on?
Otherwise you’ll need full URL like http://example.com/index.php/yyyy/mm/dd/post-name/
If only the “post name” setting doesn’t work, it might be due to a conflict, maybe you have a post with a name that’s also present on another post, page or category.
I Got Answer. It’s easy only.
1) Go to WAMP logo in right-bottom of Task-bar of Windows.
2) Click left button
3) then Apache -> Apache Modules
4) Tic(select) the rewrite_module
5) that’s all.