If you go to Settings->Permalinks and change Category Base
to topics, you won’t even have to write any code to make the change, as wordpress includes this functionality by default.
Related Posts:
- Why does wordpress still strip my query var?
- Tricky URL rewrite with custom values in url
- Add a query string to ALL links on site
- Add rewrite rule for rewrite endpoint
- add_rewrite_rule not working for language specific characters
- How to add custom variable in url without redirect?
- How to building pretty URLs to reflect category hierarchy?
- Rewrite custom post type URL parameters
- Help with Rewrite Rule for Custom Post Type with Query String
- Change pagination url format
- Per Page Permalink Structure for Page Post Type
- custom wordpress rewrite
- How to use wp rewrite to hide form action url?
- Dynamic URL with rewrite rule not working
- How do I rewrite URL that has custom parameter
- Pagination appearing twice in URL after rewrite
- URL Rewrite for CPT single posts
- Rename page URL
- WordPress post-type create url rewriting
- How to add custom rewrite rule to .htaccess?
- Problem with add_rewrite_rule and pagination (paged and page query_vars)
- How to change default page slug?
- Rewrite url for custom post type
- add_query_vars and add_rewrite_rules
- Need help with rewrite_rules_array
- When to call `add_rewrite_rule` for safety
- Hijacking the URL for filtering
- Rewrite rules goes away
- custom htaccess rewrite rule for page
- flexible rewrite ‘ramble’ URLs with WordPress
- add_rewrite_rule again
- Rewrite Rule for Post “Subpage”, with pagination
- Need to make a php file inside theme accessible via url
- How to change page URLs to “www.site.com/page” instead of “example.com/blog/page” but keep post URLs as “example.com/blog/post”?
- Rewrite loading custom template file but is_home() returns true, and there’s no 404
- Rewrite rule for admin-ajax.php
- add_rewrite_rule not registering on Multisite
- Change WordPress comments url / word
- Evaluating a external rewrite rule before internal wordpress rewrite rule
- WordPress rewrite rules for state and city
- How to check current URL for endpoint in a template file?
- Custom rewrite rule
- Is it possible to remove feeds from rewrites?
- Newbie question: no index.php? in my plain wordpress permalink
- Flush Rewrite Rules on init or rest_api_init?
- WordPress .htaccess – route other URLs to another app
- Rewrite URL – insert custom variables as a directory path
- How to properly rewrite url by custom var
- Can’t add external rewrites
- Preserve Domain Alias
- Monkey Man Rewrite Analyzer says my rule will trigger but it doesn’t [closed]
- Wildcard forward all posts and pages with few exceptions
- Create Dynamic SEO Friendly URL for Virtual Page
- add_rewrite_rule with query variables
- Rewrite Question Mark in Post Template to Make it Pretty URL
- How to redirect large amount of URLs?
- Help with rewrite rules for two post types
- How to change the Author Slug from Username to Nickname and deal with Special Characters
- Customise particular RSS permalink
- ngnix Url rewrite doesn’t work
- RSS feed rewrite matching wrong rule
- Understanding the query string after .htaccess rewrite
- Rewrites rules disappear after a while
- URL renaming issue
- Best way to trigger rewrite rules
- Removing “www” from a site URL
- Getting back a permalink from custom url
- Custom rewrite rule not working
- How do I make WordPress revise an .htaccess file a certain way?
- How can I allow trailing slashes on some URLs without a redirect, but not on others?
- Can’t use a specific custom URL (slug)?
- How do I get posts to appear at mydomain.com/blog?
- How to change an existing wordpress page rewrite rule?
- Adding the amp url prefix to the beginning
- Rewrite rules – page does not exist
- Custom route and extract data from slashes and parameter
- How to change search page url so that it still returns a page when there’s no search query specified?
- Allowing multiple URLs for same Post
- How to create dynamic URLs on WordPress?
- Rewrite Rules are Redirecting
- Using a template file for a specific custom URL
- How to redirect to a login virtual page?
- Multiple permalink with and without category for same post
- Issue with custom rewrite for products and permalinks
- Prefix only some posts with a custom prefix
- Help adding custom url, rewrite_rules_array
- Broken page redirect
- Rewrite rule not redirecting correctly
- Get custom posts by segment of the URL
- Use Parent Pages for URL Structure without Landing Page
- add_rewrite Rule
- Remove Page Slug from URL
- rewrite rule of post when accessed from archives pages
- How to create short urls for sharing and downloadable content?
- Rewrite rule is not working
- Is it possible to rewrite a page url Without setting the permalinks to Post Name?
- How to stop WordPress creating URLs that don’t exist
- How to make a custom route with any-string-part/number-part pointing to an existing page?
- Help with url rewrite
- Remove url parameter using wordpress