-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Not really. When assembling a route, the default values are always
omitted from right-to-left. If you really want SEO URLs, you should not
use the module-route.
...................................
:  ___   _   ___ ___ ___ _ ___    :
: |   \ /_\ / __| _ \ _ (_)   \   :
: | |) / _ \\__ \  _/   / | |) |  :
: |___/_/:\_\___/_| |_|_\_|___/   :
:........:........................:
: Web    : http://www.dasprids.de :
: E-mail : m...@dasprids.de       :
: Jabber : jab...@dasprids.de     :
: ICQ    : 105677955              :
:........:........................:


Vincent de Lau schrieb:
> I'm not sure if there isn't something in ZF that does this automatically,
> but you could create a plug-in to check and redirect.
> 
> The plug-in would run after routing. You could use the assemble function on
> the route to create the preferred link and check that against the requested
> URL.
> 
> If they don't match, you could redirect to the assembled URL.
> 
> Kind regards, 
> 
> Vincent de Lau
>  vinc...@delau.nl
> 
>> -----Original Message-----
>> From: fozzyuw [mailto:jmbertu...@gmail.com]
>> Sent: Friday, March 20, 2009 4:06 PM
>> To: fw-general@lists.zend.com
>> Subject: [fw-general] Force full URL names
>>
>>
>> This seems like it would be simple enough, but I'm wondering if there's
>> a way
>> to force full URL's?
>>
>> If I have a M/C/A URL like this...
>>
>> /accounts/login/index
>>
>> then that's always shown or redirect too, even if someone types in
>> "/accounts/login".  Meaning if someone doesn't type out the whole URL,
>> the
>> site will auto-redirect to the "proper full" URL.
>>
>> So, I type "/accounts/login/" and the site will auto-redirect to
>> "/accounts/login/index".  Or I type in "/accounts" and I'll be
>> redirected to
>> "/accounts/index/index", assuming "index" is the default name.
>>
>> Cheers!
>> Fozzy
>> --
>> View this message in context: http://www.nabble.com/Force-full-URL-
>> names-tp22621762p22621762.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknDwYAACgkQ0HfT5Ws789ClKgCgqs07AZA0QoZCApdUBbuODA47
/gIAniO5ehuZpTOA3M5zAb0Q0pJj+X2p
=JlDe
-----END PGP SIGNATURE-----

Reply via email to