Use one clear URL format, then redirect every trailing slash mismatch to that version with a 301 redirect. In WordPress, https://example.com/page and https://example.com/page/ can be treated as separate URLs if both load, which can split signals and muddy reporting; Google also explains that slash and non-slash URLs are different addresses [source: Google Search Central].
TLDR: Pick the correct URL style first, usually the one WordPress shows in Settings > Permalinks. Then use the 301 Redirects plugin to send the wrong version to the right one, such as /pricing to /pricing/. On a site with 200 pages, even a 7% duplicate URL issue can create 14 messy entries in analytics and Search Console. Fixing it keeps crawlers, users, and reports pointed at one clean address.
Why trailing slash redirects matter
A trailing slash looks tiny. It is not tiny for URLs. A slash often suggests a directory, while no slash can suggest a file or endpoint. WordPress usually prefers trailing slashes for posts and pages when “pretty permalinks” are enabled.
The problem starts when both versions work. Visitors may not notice. Search engines and analytics tools do. You can end up with backlinks pointing to one version, internal links pointing to another, and reports showing two rows for the same page. Honestly, it feels like such a small thing until you lose 30 minutes checking why one landing page has split traffic.
Use the 301 Redirects plugin
Because the title here is about redirects, the safest plugin-focused route is 301 Redirects – Easy Redirect Manager. It is made for simple URL redirects inside WordPress. It lets you set source URLs and target URLs without editing server files.
You can also review the premium product at WP 301 Redirects if you need more control, bulk tools, link scanning, or site migration features. For a small site, the free plugin may be enough. For a larger site, the paid tool can save time.
Step 1: Choose your correct URL format
Before adding redirects, decide which version is correct. Do not guess. Check these areas:
- WordPress permalink settings: Go to Settings > Permalinks. If your structure ends with a slash, use trailing slashes.
- Internal links: Check menus, buttons, footers, and page links.
- XML sitemap: Use the format shown in your sitemap.
- Canonical tags: View the page source and check the canonical URL.
- Google Search Console: See which version is indexed or receiving clicks.
For most standard WordPress sites, the correct version is usually /sample-page/, not /sample-page. Still, match your own setup. A WooCommerce store, headless site, or custom routing system may behave differently.
Step 2: Install the plugin
In your WordPress admin area, go to Plugins > Add New. Search for 301 Redirects. Install and activate 301 Redirects – Easy Redirect Manager.
After activation, open the plugin settings. You should see fields for the old URL and the new URL. The names may vary a little by version, but the idea is simple: place the wrong address on the left and the correct address on the right.
Step 3: Add a trailing slash redirect
Here is a common example:
- Redirect From: /pricing
- Redirect To: /pricing/
- Type: 301 Permanent Redirect
Save the rule. Then test it in a private browser window. Type the wrong version into the address bar. It should send you to the correct version in one jump.
If your correct format is the non-slash version, reverse the rule:
- Redirect From: /pricing/
- Redirect To: /pricing
Do not redirect both ways. That creates a loop. A loop can break the page and show browser errors. It drives me crazy that one tiny reversed rule can waste 10 minutes because cache makes it look random.
Step 4: Handle many URLs without creating chaos
If you only have five affected pages, add rules by hand. If you have 50 or 500, slow down and plan first. Export your URLs from your sitemap, SEO plugin, or crawling tool. Mark the correct version. Then prepare a list of redirect pairs.
For larger jobs, check whether your plugin setup supports import features. If it does not, consider using WP 301 Redirects for bulk work and monitoring. Manual edits are fine until they are not. After that, mistakes multiply fast.
Step 5: Clear cache and test properly
After saving redirects, clear every cache layer you use. That may include a WordPress cache plugin, server cache, CDN cache, and browser cache. Then test with:
- A private browser window
- An HTTP status checker
- curl, if you are comfortable with command line checks
- Google Search Console inspection for key pages
You want to see a 301 status, not 302, 404, or 200 on the wrong version. A 200 response means the wrong URL still loads. A 302 means the redirect may be treated as temporary. A 301 tells browsers and search engines that the move is permanent.
Common mistakes to avoid
- Redirecting every URL blindly: Some paths may be API routes, feeds, or files. Check before redirecting.
- Creating redirect chains: Do not send /page to /page/ and then to another URL.
- Ignoring canonicals: Redirects and canonical tags should point to the same final URL.
- Forgetting internal links: Fix menus and page links so users do not hit redirects on every click.
- Not testing mobile and desktop: Some cache rules behave oddly across devices.
Final checklist
Choose one URL style. Match WordPress permalinks, sitemap URLs, and canonical tags. Add 301 redirects with the 301 Redirects plugin. Clear cache. Test the wrong version and confirm it lands on the right one with a single 301 jump.
That is the clean way to fix trailing slash issues in WordPress. It keeps users in the right place, reduces duplicate URLs, and makes your SEO data easier to trust.