The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Is there any way to replace hyphens with underscores?

Luca's Avatar


17 Jan, 2016 01:55 PM

Because Slim does not support hyphens within route parameters I have thought about replacing them with underscores using the htacess but I have no idea how to do this because I want the hyphens to stay within the URL. So another idea would be to replace hyphens from the requestes route before the Slim routine starts.

Does anyone has an idea how to archive a replacement of hyphens without changing the user's URL?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac