Geeks With Blogs
Sathya Narayanan Srinivasan .NET Developer
When you select postname in permalinks of wordpress admin page, it might not work sometimes.
Following are the reasons.

* If in the admin permalinks page itself if it shows some message saying "if you have given permissions to .htaccess we could have done this ourselves". Do the following

1. Go to wordpress installation folder in ftp or if you are connected to your ssh, navigate to the folder
2. Ensure that you that you have permissions 644 for .htaccess file and wp-config.php file  (If you use filezilla, you can rightclick on the file and ensure that these are checked : 
Owner Permissions : Read and Write
Group Permissions : Read 
Public Permissions : Read)
3. Also ensure that 755 permission is given for all the subfolders under your installation directory
4. Go to admin - permalinks page again, choose postname option and save it, the * message mentioned above should go away
5. if you still see * message as mentioned above, try to set the permissions for .htaccess file as 777 and do step 4 again.
6. now you should not see the * message anymore if you have done step 5

7. try to navigate to the post you have created 
8. if it works, go to filezilla and change the permissions back to 644 and everything should still work fine.
9. if it still doesn't work and if it says 404 page not found, do the following.
10. ssh to the server
12. vim /etc/apache2/apache2.conf (might be httpd.conf in some cases)
13. find the word Directory
14. You can see a couple of Directory sections like that (ex: <Directory /usr/asdf>...</Directory>.
15. Insert an additional section next to what you have like below. (ensure that you mention your complete wordpress installtion path. The path given below is just an example. for the given path, AllowOverride is what matters. So ensure that AllowOverride is set to All for the folder that you mention under the Directory tag.

<Directory /var/www/myfolder/htdocs/wpinstallationfolder/>

        Options Indexes FollowSymLinks

        AllowOverride All

        Require all granted

</Directory>

16. Restart your apache server.
In my case its service apache2 restart
it can also be service httpd restart
17. Refresh your sample blog that you have created or create a new blog post from the admin page and try navigating to it, it should all work fine.


If it still doesnt work, it means your module rewrite may not be enabled.
Ensure that this line is uncommented (remove the # in front of the following line) in the /etc/apache2/apache2.conf (or) httpd.conf

LoadModule rewrite_module modules / mod_rewrite.so

Ensure to restart the apache server and refresh the page and try again.

Ensure to do step 8 finally, if you have not done it already.
Posted on Friday, June 16, 2017 11:38 AM wordpress , permalinks , postname | Back to top


Comments on this post: Wordpress change permalinks to Postname cause Page Not Found

# re: Wordpress change permalinks to Postname cause Page Not Found
Requesting Gravatar...
Thank you so much for this article and the pain you have taken to guide us. It will be a treasure for thousands of wordpress users often struggling with these type of errors.
Moreover this permalink setting is a very very important one for SEO purpose so it will be very helpful.
Also, try to make some article about how to use the terminal from windows pc of various OS with basic and very important commands which are to be learned by website owners.
Thanks again.
Left by Dr NVS on Jun 16, 2017 2:19 PM

# re: Wordpress change permalinks to Postname cause Page Not Found
Requesting Gravatar...
I have several wordpress sites with bestwebhosting in the UK. All of a sudden - last night apparently all but one site started showing 404 errors on any page other than the home page. So admin would work find but not pages and posts.

I read this article and changing back the links from post-name to simple number links FIXES the problem but of course screws up Google.... so it is not a solution. But ONE of my sites which is no different to the others -continues to work with postnames!!!

Right now I have no answers and one of the sites generates income which is a worry.... but at least reading this post got me to check the post types which is one step forward.
Left by Peter Scargill on Jun 22, 2017 9:45 PM

# re: Wordpress change permalinks to Postname cause Page Not Found
Requesting Gravatar...
Thank you so much for this article and the pain you have taken to guide us. It will be a treasure for thousands of wordpress users often struggling with these type of errors.
Moreover this permalink setting is a very very important one for SEO purpose so it will be very helpful. T20 Global League Live Streaming
FIFA world cup theme song
Left by Dileep Yadav on Jun 24, 2017 2:21 AM

# re: Wordpress change permalinks to Postname cause Page Not Found
Requesting Gravatar...
I read this article and changing back the links from post-name to simple number links FIXES the problem but of course screws up Google.... so it is not a solution. But ONE of my sites which is no different to the others -continues to work with postnames!!!
Nearest Locations
Left by malvika on Jul 07, 2017 11:06 AM

# re: Wordpress change permalinks to Postname cause Page Not Found
Requesting Gravatar...
nice article

see more
Left by Danette on Sep 16, 2017 10:15 AM

# re: Wordpress change permalinks to Postname cause Page Not Found
Requesting Gravatar...
This will be a very useful piece of detail for the thousands of wordpress users around different parts. I have faced the same issue a couple of times while moving through the pages. Thanks for the information for dealing with the issues. tablet wholesale distributors
Left by lionel john on Sep 18, 2017 3:17 PM

Your comment:
 (will show your gravatar)


Copyright © sathya | Powered by: GeeksWithBlogs.net