Ideally, that is how the links should look by default.
What do your category and post links look like at present?
Have you checked ‘permalink settings’ and confirmed that they are set to ‘Post Name’?
@shariqkhan2012
In present, i have set custom structure like http://domain.com/wordpress_folder/blog/%postname%/ on permalink.
In this setting particular post link http://domain.com/wordpress_folder/blog/post_name working fine but category page not found.
Can you give your website url?
What is the category name and link you are trying to access?
@shariqkhan2012
Sorry, its from localhost.
I have category like business and i want to show list of posts under this category by click the link looks like http://localhost/wordpress/blog/business.
and regarding posts show the post details by click this link looks like
http://localhost/wordpress/blog/samplepost/
WordPress requires that category base should be present in one form or another in the permalink. So your category permalink would be like this:
http://localhost/wordpress/blog/category/business
If you want to completely remove category base, then then the ‘Permalink’ settings page will not serve the purpose. In that case, you will have to resort to rewriting the url or you could use plugins like this or this one
If you want to do it without using a plugin, then see this Stackoverflow answer for some tricks
@shariqkhan2012
but i can’t find my solution for both single post and category.
http://localhost/wordpress/blog/samplepost/
Does this link not take you to your single post?
Brother you need to provide some more information. Simply saying that ‘I cant find my solution’ does not convey much about what problem you are facing or why the suggested plugins/solutions did not work for you
Please provide the following information:
1. The screenshot of your permlink settings
2. The screenshot of your single post edit screen. Post the url of an actual single post from your blog
3. What happens when you click on that permalink.
http://localhost/wordpress/blog/samplepost/
Does this link not take you to your single post? — Yes.
Here is my permalink’s screenshot.

here is the category url http://localhost/convergehubsitewp/blog/crm/ it’s working fine
Here is the single post url http://localhost/convergehubsitewp/blog/crm/sample-crm-post-1/ — i want to http://localhost/convergehubsitewp/blog/sample-crm-post-1/
I have activated this plugin Link
-
This reply was modified 9 years, 2 months ago by
Rupam Hazra.
i want to http://localhost/convergehubsitewp/blog/sample-crm-post-1/
For that you need to remove %category% from your custom permalink structure.
Instead of keeping the structure as /blog/%category%/%postname%/
you should make it as /blog/%postname%/
So, what is the problem?
You are not providing any useful information.
What is anyone supposed to understand just by reading “I need both”?
Did you try the changes I suggested?
If yes, what problems did you face after the changes?
You should mention what worked and what did not work.