The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Article title name as URL? Re: Article title name as URL?


There is a great script on github: [BaconStringUtilsSlugifier]( (you don’t need to use Zend to use the classes in `/src`.

It does not only convert chars like `ö` to `o` but also `北亰` to `Bei Jing`, according to the readme (slugified that would be `bei-jing`)… You never know, right? ;)

You then need to redirect requests to a common landing page (probably just `/index.php`, using .htaccess), read out the slug and query that page from a database (in which you have an indexed ‘unique, which is an index’ column with the slug to make queries fast).

The `html` extension in your example doesn’t mean there is an actual html file.