Hello.
I'm working on a new project, using Apache's mod_rewrite and PHP to get pretty URLs.
Here's what my URLs look like:
http://example.tld/foo/bar/1/etc
Notice that there's no trailing slash (that's the way I write it in the href
attributes of <a>
s).
However, I'm also allowing http://example.tld/foo/bar/1/etc/
(trailing slash).
Is this bad practice? I'm wondering if it would be better to only allow one way or if I'd better use trailing slashes in all my links, by default.
Thanks.