If you have a post category called “News”, you can setup your permalinks to be like:
/%category%/%postname%/
This will make any post under that category include /news/
in the permalink
Related Posts:
- Need help with add_rewrite_rule
- How does WordPress handle permalinks?
- How to get pretty URLs with add_query_arg in permalinks
- Creating custom permalink structure for languages
- How to add a custom URL placeholder to author archives?
- permastruct for custom post type not working in one of four cases
- Make post slug have priority over category slug
- Remove subfolders from URL
- Remove parent slug for child pages
- flexible rewrite ‘ramble’ URLs with WordPress
- Nice RSS Feed URLs for each custom post type
- Change the custom post type permalink
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Rewrite url / permalink for default archive – yearly / monthly
- Permalinks, Rewrites, Get Variables, Oh My!
- How to Modify Existing Rewrite Rules?
- Image Attachment Url Rewrite
- Rewrite Page with a slug before page name
- Can’t get rewrite rules working
- Rewrite my default post URL
- When is it a good idea to build a permalink structure from scratch?
- If the only permalink setting is %postname% what happens in the case of old duplicates?
- Change author slug and functionality
- How to reset canonical URLs / fix redirect loop
- Permalinks: Page Not Found
- Use Regular Expression to get tag from permalink url during wp_rewrite in generate_rewrite_rules
- remove sub-category of Custom Post Type from permalink structure
- WordPress Permalinks & Nginx Rewrite Rule Not Working
- Is a permastruct possible on pages?
- How to redirect to correct pages after permalink structure change
- Rewrite rule for a query string
- How to add a variable as a tag base?
- WPML – how to get the permalinks to display also the default language
- Add prefix to page URL based on the page template
- How to remove specific category from URL in WordPress
- Need to add trailing slash to all internal links relative and absolute
- Custom permalink leads to index page
- Permalinks 404 error with HTTPS host
- Mirror content based on URL slug
- How to change hierarchical page permalinks to be flat
- How to rewrite a URL to another rewritten URL without changing the address?
- Disable date based archives for all categories except one
- How can I emulate permalink behaviour on static pages
- wordpress how to replace url /bar with foo/bar for custom post type
- How Do I get the author’s page id?
- Getting back a permalink from custom url
- Permalinks on Windows IIS not working and web.config breaks site – does wordpress not support windows server now, if so how?
- Order custom post type posts by custom field with pretty URL
- Show category name in the post URL only for specific categories
- Exclude single page from permalink rule
- Bulk append URL (add word to slug)
- help to remove last trailing slash using add_rewrite_rule
- How are WordPress Page URLs affected by permalink settings?
- WordPress pages and posts are redirecting to server IP address instead of domain URL [closed]
- Change permalink to attachment
- Rewrite rule not passing variable
- Access posts while mod_rewrite is broken
- “set_front” => false on custom post type breaks wp_list_categories links [closed]
- Problems with permalinks (.htaccess not working)
- Subdomains pointing to a permalink URL
- corrupted URLs – can’t leave starting page
- Make the blog page a child of another page and rewrite the blog url
- Multiple Taxonomy Items for Separate URLs
- WordPress keeps removing query var from the URL
- MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn’t help
- How to construct a dynamic rewrite rule for child pages that passes more than one query var
- How can I access to the same post-type “page” from multiple different urls?
- Multiple URL rewrite rules and get every prams
- Using a template file for a specific custom URL
- Website URL Permalinks
- Passing parameter through permalink structure
- Add word to permalinks does not transform the urls
- append current user-id to all internal permalinks
- rebuilding/ rewriting a url to make it SEO friendly
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- My permalinks for all pages and posts now include old page titles as parents/categories
- Pagination links for taxonomy archive page 404 error on every page except first
- WordPress Pagination Custom Rewrite Rule for Pages
- Change all pages permalinks instead of hierarchical to have id of the page
- How can I get .html URL suffixes in permalinks?
- Rewrite single template permalink?
- rewrites and custom links in page need help with add_rewrite_rule
- Category-dependent custom permalink
- How to create an IIS7 re-write rule for a single category
- All pages lead to home
- Although rewrite engine is on, I get 404 not found on every page
- Customized author slugs not working with get_author_posts_url method
- Remove index.php from WP 8.0 install migrated to IIS from Apache (still detecting Apache server)?
- Editing the variables in a custom URL
- ?posts_type=xxx not rewritten
- Custom permalink variable on single post
- region selection
- WordPress custom permalinks, pages are now 404
- Include language variable in url
- Creating complex URLs with WordPress permalink structure
- permalinks url with woocommerce
- How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?
- Blog url disappears
- Blog URL Structure – Multiple Taxonomies