WordPress permalinks determine how your URLs look and significantly impact SEO. Whether you want clean URLs, custom structures, or category-based links, understanding permalinks is essential for every WordPress site. Here’s your complete guide to WordPress permalinks in 2026.
What Are WordPress Permalinks?
Permalinks are the permanent URLs to your posts, pages, categories, and archives. A well-structured permalink improves both user experience and search engine optimization.
- Default: example.com/?p=123
- Post Name: example.com/my-post-title/
- Day and Name: example.com/2026/01/15/my-post/
- Month and Name: example.com/2026/01/my-post/
- Numeric: example.com/archives/123
- Custom: example.com/blog/%postname%/
How to Set Up Permalinks
Step 1: Access Permalink Settings
Navigate to Settings → Permalinks in your WordPress dashboard. You’ll see several predefined options and a custom structure field.
Step 2: Choose Your Structure
For most websites, the “Post name” structure is recommended:
- Best for SEO: Short, keyword-rich URLs
- User-friendly: Easy to read and remember
- Flexible: Works for any content type
Step 3: Save Changes
Click “Save Changes” to update your permalink structure. WordPress will automatically update your .htaccess file (Apache) or nginx configuration.
Permalink Structure Tags
WordPress provides these structure tags for custom permalinks:
| Tag | Description | Example |
|---|---|---|
| %year% | Four-digit year | 2026 |
| %monthnum% | Month number | 01-12 |
| %day% | Day of month | 01-31 |
| %postname% | Post slug | my-post-title |
| %post_id% | Post ID | 123 |
| %category% | Category slug | news |
| %author% | Author slug | john |
SEO Best Practices for Permalinks
Keep URLs Short and Descriptive
Shorter URLs perform better in search results. Remove unnecessary words like “the,” “and,” “a” from your slugs.
- Good: example.com/wordpress-seo-guide/
- Bad: example.com/the-complete-guide-to-wordpress-seo-for-beginners/
Use Keywords in URLs
Include your target keyword in the URL slug naturally. This helps search engines understand your content.
Avoid Special Characters
Stick to lowercase letters, numbers, and hyphens. Avoid underscores, spaces, and special characters.
Don’t Include Dates (Usually)
Unless your content is time-sensitive (news), avoid dates in permalinks. They make URLs longer and can make evergreen content look outdated.
Changing Permalinks Safely
Warning: URL Changes Can Break Links
Changing permalinks on an established site can break existing links and hurt SEO. Always set up redirects when changing URLs.
Using Redirect Plugins
Install a redirect plugin before changing permalinks:
- Redirection: Free, comprehensive redirect management
- Rank Math: Built-in redirect module
- Yoast Premium: Automatic redirect suggestions
301 Redirect Setup
Create 301 (permanent) redirects from old URLs to new ones. This preserves SEO value and prevents 404 errors.
Custom Post Type Permalinks
Custom post types can have their own permalink structures:
- Products: example.com/shop/product-name/
- Portfolio: example.com/portfolio/project-name/
- Events: example.com/events/event-name/
Most plugins that create custom post types let you customize their permalink base in settings.
Category and Tag Permalinks
Category Base
By default, category archives use: example.com/category/category-name/
You can customize this in Settings → Permalinks → Optional section.
Tag Base
Tag archives default to: example.com/tag/tag-name/
Change the tag base in the same Optional section of permalink settings.
Removing Category Base
Some prefer URLs without /category/. Use plugins like “Remove Category URL” or Rank Math’s settings to achieve this.
Troubleshooting Permalink Issues
404 Errors After Changing Permalinks
- Re-save permalinks (Settings → Permalinks → Save)
- Check .htaccess file permissions
- Verify mod_rewrite is enabled (Apache)
- Check nginx rewrite rules
Permalinks Not Working
- Ensure .htaccess is writable
- Disable plugins to find conflicts
- Switch to default theme temporarily
- Contact your host about server configuration
Frequently Asked Questions
What’s the best permalink structure for SEO?
The “Post name” structure (%postname%) is generally best for SEO. It creates short, keyword-rich URLs without unnecessary information.
Should I include categories in permalinks?
It depends. Category-based URLs add hierarchy but make URLs longer. Most sites do fine with just the post name.
Can I change permalinks on an established site?
Yes, but carefully. Set up 301 redirects from all old URLs to prevent losing SEO rankings and breaking existing links.
Why do my permalinks show ?p=123?
This is the default “Plain” structure. Change it in Settings → Permalinks to enable pretty permalinks.
Recommended Permalink Structure
For most websites, we recommend:
- Blog Posts: /%postname%/
- Pages: /%pagename%/ (default)
- Categories: /category/%category%/ or remove base
- Products: /shop/%postname%/
Optimize Your WordPress Site
Get premium SEO plugins to perfect your permalinks and boost rankings.
Original Licenses | Best Prices | Premium Support