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
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