can you send what you used? I'd like to do the same.
thanks,
James
On Jan 27, 2008, at 1:15 AM, Joan Piedra wrote:
> Jonathan you were completly right.
> I just added an htacces condition and rule to make this 301 redirect
> work.
>
> I will send a blog post about this soon.
> Thanks for pointing it out.
>
> On Jan 26, 2008 2:58 PM, Jonathan Franks <[EMAIL PROTECTED]> wrote:
>
> you can use .htaccess to remove trailing slashes from urls. Just
> google
> it, there are plenty of examples online....
>
> Yılmaz Uğurlu wrote:
> > Hi, i am using like this
> >
> > post_detail:
> > url: /blog/:stripped_category_title/detail/:stripped_title/*
> > param: { module: blog, action: detail }
> >
> > and it is work good for me both "/blog/lab/detail/stripped-title"
> > and "/blog/lab/detail/stripped-title/"
> >
> > 2008/1/26, James <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
> >
> > I just created a 2nd route with the / at the end, but you are
> > probably right this should be handled automatically by symfony.
> >
> > James
> >
> >
> > On Jan 26, 2008, at 11:54 AM, Joan Piedra wrote:
> >
> >>
> >> 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/
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >
> > --
> > Yılmaz Uğurlu ~ jabber : [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]> ~ http://www.2nci.com ~ İzmir
> > >
>
>
>
>
>
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---