You have to either work it out with the WP_Rewrite class or add this to the .htaccess file
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^sermon/(.*)/ /sermon?name=$1 [L]
UPDATE
Forgot to mention that the htaccess code is supposed to be above the wordpress generated htaccess code
Related Posts:
- Preserve custom URL parameter on more pages
- Which method is best to enqueue scripts
- How to make WordPress use protocol indepentent upload files?
- Woocommerce different URL for every table placed in the restaurant
- Author Specific URL’s in WordPress
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- Add query string to plugin URL
- I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
- Is revealing just the AUTH_KEY a security issue?
- locate_template with multiple categories?
- custom taxonomy and custom post type url conflict
- Find the URL of the current plugin directory
- Rewrite url without flushing the database?
- Custom page slug without creating a WP page
- Best way to hook a custom url?
- Changed permalink structure. Need help with redirecting old posts
- What is an arbitrary URL?
- How can I change a plugin’s URL?
- How to make a proper custom post type link
- Why WordPress plugin url ajax doesn’t work?
- Added slug after URL permalink last slash returns different content
- Is there a hook to Intercept al urls from a webpage and redirect to a page
- WordPress shows error related to allow_url_fopen
- Ability to automatically redirect a URL
- Subdomains with almost the same content
- URL parameters causing 404 on home page, but nowhere else
- change content based on url per plugin
- Redirect to another page using contact form 7? [closed]
- correctness of URL
- How do I convert my WordPress website to be domain agnostic?
- Need to change link URL embedded in multiple posts to new link URL
- How to pass a query string to another page on the same site?
- how to replace hostnames on certain external links?
- How to rewrite URL and get the values?
- Scrape a webpage for image and add it to post
- Change url of posts with keywords
- How to access the WordPress DB from a plugin file
- Replace video url with video player
- Offer Download Links for Product Images
- How to hide particular plain text with link from different subscribers
- Redirect unloggedin users
- Change language on website and change currency with url query
- Add a parameter at the end of the url and prettify
- insert og image link in wordpress post
- How to create a folder in wordpress that will contain pages?
- How to generate expiring URL of the page?
- how to include my homepage and scc in to a plugin
- How to allow URL with filename & extension in wordpress?
- Having multiple URL structure for wordpress blog
- Some resources of my website are pointing to www.mysite.com/dev/ and trying to get rid of that append has been a headache
- How do you remove question mark in URL in get method?
- WordPress drop domain alias
- URL Case Sensitivity (Unbounce Landing Pages)
- Automatic set a featured image from the first image’s url (or tag) in the article
- WordPress website giving 404
- Infinite 301 redirects after definitions in “Redirections” plugin?
- Keeping original URL
- How to link file or image from wordpress plugin dir to theme by using themes function.php, is it possible?
- Using permalinks with parameters
- Images not showing on homepage after migration [duplicate]
- Creating custom URL for async content
- URL RewriteRule doesn’t work when using WP Database Participants in my WordPress website
- How To Rewrite WordPress Pages URL Only?
- How can I process all requests for a given directory in a URL with my plugin?
- Unwanted Links and Spam WordPress Pages and Posts
- Display Plugin information on specific url
- Why links are not linked if edited comment?
- How to get the real address from a url (permalink)
- Remove base from the custom post type URL [duplicate]
- WP Job Manger change jobs url (NOT slug)
- map urls to plugins
- HTML link within my plugin settings page
- Why plugin’s icon for the menu not found?
- Fetching Video From YouTube Automatically [closed]
- How to create a custom wordpress plugin for a specific functionality?
- How to change all the urls of the WordPress site?
- How to Handle? vp_page Parameter in WordPress and Resolve Google Search Console Validation Issues?
- Trying to Find the PHP File/Function that Handles a Specific Form Action URL
- Help with coding a link for a button in WordPress with The Events Calendar Plugin
- Show a confirm message before plug-in activation
- Sharing Ad Revenue among Users of a Multisite in a Collaborative Model?
- Can I list all installed plugins/versions and wp version from API
- WordPress Plugin as ‘Library’ From Abstract Application?
- Show list of loaded php files from plugins
- Add custom meta box on Post page
- Should I add sharing buttons using a plugin or directly in my theme files?
- Can installing a plugin delete an entire theme directory?
- How to prevent spam comments?
- Yoast SEO Calling content filters 2 additional times
- How to handle autoloading with composer by keeping the WordPress naming conventions?
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- filemtime() warning when enqueuing style within plugin
- Minimum PHP Required for WordPress
- Post query – show posts from specified day and month and whole years
- Support for simultaneous editing
- tag breaks shortcode output (other solutions don’t work)
- Create entire wordpress as a github repositery?
- How to overwrite core/libraries/vendor template with child theme
- Plugin integrate in forum to show user profiles [closed]
- WP_Query and NULL meta keys