The creation of clean, SEO-friendly URLs is important not only for search engines but also for better user experience. By default, WordPress uses /category/ for category URLs and doesn’t add a /blog/ prefix to posts. This guide shows how to customize both.
Table of Contents
ToggleAdd /blog/ slug to WordPress post URLs
- Log in to your WordPress dashboard.
- Navigate to Settings → Permalinks.
- Under Common Settings, select Custom Structure.
- Enter the following in the field: /blog/%postname%/
- Click Save Changes.
- Your post URLs will now look like: example.com/blog/my-post-title
Change the category base in WordPress
- In Settings → Permalinks, scroll to the Optional section.
- Locate the Category base field.
- Enter your preferred slug: topics
- Click Save Changes.
- Your category URLs will now look like: example.com/topics/technology
Benefits of custom slugs
- Cleaner URLs for better readability.
- Improved SEO by including relevant keywords in URLs.
- Consistent URL structure for posts and categories.
