Also, not sure if this is fool proof, but as a last rule in routing.yml
I tried:
catch_all:
url: /*.
param: { module: catchall, action: index }
This will catch everything left at the end of the routing rules:
www.domain.com/incorrectly_entered_url etc.
Comments?
Tom Haskins-Vaughan wrote:
> So, I found a way of doing it in case anyone's interested:
>
> In routing.yml:
>
> print_friendly_url:
> url: /menus.
> param: { module: menus, action: index }
>
> Note the '.' after menus.
>
>
> Tom Haskins-Vaughan wrote:
>> Huh. I didn't realise that. Thanks.
>>
>> Either way, is this possible in symfony?
>>
>> Dan Grossman wrote:
>>> Adding a suffix does not make your pages any more friendly to search
>>> engines. Use the URL without the suffix.
>>>
>>> ~ Dan Grossman
>>> http://www.dangrossman.info
>>>
>>> Tom Haskins-Vaughan wrote:
>>>> Hi,
>>>>
>>>> Here's my situation:
>>>>
>>>> I am using the suffix to append .htm on the end of all my pages to make
>>>> it more friendly to search eengines, e.g. www.domain.com/menus.htm
>>>>
>>>> But I'd like to be able to put the following url on printed literature
>>>> so that it's easier to remember: www.domain.com/menus
>>>>
>>>> Any suggestions about how I go about doing this? Is there a way in
>>>> symfony or would I have to use apache redirects?
>>>>
>>>> Thanks in advance.
>>>>
>>>> Tom
>>>>
>>>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---