How to create example.com/blog/postname permalinks?

Hi everyone,

I am trying to fix our website’s URL architecture kind of like what Ahrefs has shown:

​

https://preview.redd.it/ikp1qiwqzgqc1.png?width=1812&format=png&auto=webp&s=43d4664db4f3689b77c099bf17bad101da2e3ecb

Generally, I would do this by going to WordPress Settings>Permalinks and adding blog before I add the postname shortcode. But we also have post types for templates which means this will add the blog/ to those too. Ideally, I want to have this kind of link structure:

Home: example.com

Features: example.com/features

Blog: [example.com/blog](https://example.com/blog)

Single Post: example.com/blog/postname

Templates: example.com//templates

Template types: example.com/website-templates/html5-templates/postname

How can I do this? Any suggestions?

1 Comment
  1. I would add different custom post types for each of the different types of content, give each post type the slug you want, and then posts is just for the blog. So, you’d have a /features post type, a /templates post type, and a /website-templates post type. Now all those pieces of content would assume the permalink prefix of their post type.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer