Trailing Slash Redirect Generator
Generate 301 redirect rules that force URLs to always end with, or always end without, a trailing slash, for Apache and Nginx.
📘 New to this tool? Follow the step by step guide with screenshots.
Quick answer: The Trailing Slash Redirect Generator turns your input, preference and server into ready to edit text. Fill in the fields and the result appears straight away. It is free, needs no account and runs in your browser, so nothing you enter is saved on a server.
On this page
What is the Trailing Slash Redirect Generator?
Create Apache and Nginx 301 rules to add or remove trailing slashes and prevent duplicate URLs. It is built for site owners, developers and SEOs who look after crawling, indexing and site health.
How do you use the Trailing Slash Redirect Generator?
- Paste your text into Input.
- Choose Preference (example: Add trailing slash).
- Choose Server (example: Apache (.htaccess)).
- Read the result, then copy or download it.


For a fuller walkthrough, see the step by step guide to the Trailing Slash Redirect Generator.
Which inputs does the Trailing Slash Redirect Generator use?
| Input | Type | Example value |
|---|---|---|
| Input | Text box | Your own value |
| Preference | Menu | Add trailing slash |
| Server | Menu | Apache (.htaccess) |
What does a worked example show?
Using Preference Add trailing slash and Server Apache (.htaccess), the tool shows: Rewrite, Engine On Rewrite, Cond %{REQUEST_FILENAME} !-f Rewrite, Cond %{REQUEST_URI} !(.*)/$ Rewrite, Rule ^(.*), $ /$1/ [L,R=301]. Swap in your own input to get your own result.
Pick one
/page and /page/ are different URLs to Google. Choose one format, redirect the other and use it in all internal links.
Key terms
- Canonical tag
- A link element that tells search engines which URL is the main version of a page when several URLs show the same or similar content. It helps combine ranking signals and prevents duplicate pages from competing.
- 301 redirect
- A permanent redirect that sends users and search engines from an old URL to a new one. It passes most ranking signals to the new address, which makes it the standard choice when a page moves or two pages are merged.
- Core Web Vitals
- Google metrics for real user experience: Largest Contentful Paint for loading, Interaction to Next Paint for responsiveness and Cumulative Layout Shift for visual stability. Good thresholds are 2.5 seconds, 200 milliseconds and 0.1.
- HTML
- HyperText Markup Language, the standard language that structures web pages with elements such as headings, paragraphs, links and images. Search engines read the HTML to understand page content, links and metadata.
- Search engine optimisation
- The practice of improving a website so it ranks higher in unpaid search results. It covers technical health, on-page content, links and user experience, and it follows Google Search Essentials rather than shortcuts.
How we checked this tool
We tested the Trailing Slash Redirect Generator in Chrome on 2 November 2026 with the example inputs shown above and checked the output by hand. It runs in your browser and does not store what you enter. Read our editorial policy, disclaimer and privacy policy, or report an error on WhatsApp.
Frequently asked questions
What does the Trailing Slash Redirect Generator do?
Create Apache and Nginx 301 rules to add or remove trailing slashes and prevent duplicate URLs.
Who should use the Trailing Slash Redirect Generator?
The Trailing Slash Redirect Generator is made for site owners, developers and SEOs who look after crawling, indexing and site health. It is simple enough for beginners and quick enough for agencies that run the same check many times a week.
Is the Trailing Slash Redirect Generator free?
Yes. The Trailing Slash Redirect Generator is free with no account, no daily limit and no watermark, and it sits alongside more than 500 other free tools on this site.
Does the Trailing Slash Redirect Generator save my data?
No. All processing happens in your browser with JavaScript. The values and text you enter stay on your device and are not sent to or stored on our server.
How reliable are the results?
The output is a starting draft. Review and edit it so it is accurate and sounds like you before you publish or send it.
Where can I learn more about the Trailing Slash Redirect Generator?
Read the step by step guide with screenshots, linked above, or browse the other free technical seo tools for related checks.
Sources: Google crawling and indexing documentation and Google SEO Starter Guide, checked 2 November 2026.