Skip To Navigation

Slash removal

My URLs don't have slashes on the end of them, and don't work if you add one. Except for the home page, which does have a slash and doesn't work if you remove it. Simple, eh?

After making the slash mistake myself, I think I should finally bother to fix it. I need to redirect away the slash if it the path before it is valid, and the slash has nothing after it. I also could make the home page "/r" instead of "/r/", but I'm not sure which makes more sense. I'll see...

Edit: Done this. Also fixed an IE CSS issue that was actually me relying on a Mozilla bug. Ho hum.

⇐16 Jul 2005 - Indecisive... / 13 Jul 2005 - Like a broken pencil⇒

Feedback

I think it's cool without them. I use the trailing slash to infer that it's a directory (e.g. http://tunnie.com/webdesign/) and leave it off to infer that you're at an bottom-of-hierarchy page (e.g. http://tunnie.com/blog/31). I don't really have a hard rule for it though, so it just ends up being whatever "feels right". / Comment from Michael Tunnicliffe on 15 Jul 2005 at 18:17.

The problem is that I often want to extend a page and make it into a directory, so I had to pick something consistent, at least for RdMise. At least I didn't go with my original plan of having them all end in ".html"... / Comment from Robert Marshall / [Admin] on 15 Jul 2005 at 19:47.

Feedback is closed. Feel free to contact me privately.

tH