Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How Do I redirect all urls to their trailing slash equivalent? - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
•
2 replies
jdkdev
How Do I redirect all urls to their trailing slash equivalent?
Hi
!
Anyone know how to take any url and if the pathname doesn
't end with a trailing slash
, redirect it to the same url with a the slash
(with params
)
?
example
:
/blogs
should redirect to
/blogs
/
and
/blogs
?page
=2
to
/blogs
/
?page
=2
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
404 on URLs containing dots without trailing slash
CD
Cloudflare Developers / pages-help
3y ago
redirects not working with trailing slash inputs
CD
Cloudflare Developers / pages-help
16mo ago
308 redirects for paths without trailing slash
CD
Cloudflare Developers / pages-help
3y ago
Redirects remove trailing slash with Remix Pages app
CD
Cloudflare Developers / pages-help
2y ago