Good morning symfoners,I've been looking for an answers to this but I'm
afraid I couldn't find any.

Symfony routing usually works like this, adding modules and actions without
a final slash in the url.
/:module/:action
/:module

Therefore, I could get to a simple routing just like this.
/post/create
/post

So far so good, until the final user decide to write a direct url in the
browser with a final slash, just like this.
/post/create/
/post/

If this happens they would get a plain 404 error, I do know about content
repeating is banned from Google, but we could just use a simple 302 redirect
to make this work hassle free.

/post/create/ would redirect to /post/create and the users could get to the
action, as simple as that.
Is it possible to make this work, if so how?

Have a nice weekend to you all.

Thanks,
My best regards.

-- 
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to