You need to use the Router docs are here:

http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.basic

This will allow you to rewrite your urls easily within the ZF-MVC,
what I normally do is in the database along with an id field have an
ident field which is url-safe and unique, this can then be used in the
url to identify the record instead of using id. So rather than:

http://www.domain.com/venue/details/id/667

you have:

http://www.domain.com/venue/details/my-venue-ident-string

Hope this helps

I use this in my storefront example application here to:

http://code.google.com/p/zendframeworkstorefront/


2009/3/23 dele454 <[email protected]>:
>
> Hi,
>
> I have urls like this http://www.domain.com/venue/details/id/667. But i have
> been advised that in order to generate more traffic and increase my search
> rankings i need to re-write my URLs to have more descriptive name of the
> venue instead something like:
>
> http://www.domain.com/venue/details/id/667/VenueName
>
> OR
>
> http://www.domain.com/venue/details/VenueName
>
> I am not a SEO guy but how would i go about this rewriting my URLs. Apache
> directive or a view Helper in ZF?
>
> Sorry if i sound naive- never done this before
>
> Thanks :)
>
> -----
> dee
> --
> View this message in context: 
> http://www.nabble.com/URL-rewriting-tp22656394p22656394.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>



-- 
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------

Reply via email to