# SEO friendly routing

**URL:** <https://www.ruby-forum.com/t/seo-friendly-routing/184284>\
**Category:** Rails\
**Created:** [February 28, 2010, 3:37am UTC](https://www.ruby-forum.com/t/seo-friendly-routing/184284 "2010-02-28T03:37:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avanetix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/838e76/32.png) [@avanetix](https://www.ruby-forum.com/u/avanetix)\
**Post date:** [February 28, 2010, 3:37am UTC](https://www.ruby-forum.com/t/seo-friendly-routing/184284/1 "2010-02-28T03:37:40Z")

</div>

Hi all!

I’m moving to Ruby on Rails from PHP/ZendFramework. And i cannot  
understand how to make such routing model:

I am trying to develop articles site from scratch, so i have article  
model with fields: id, title, section, alias and body, also i have  
sections tree for navigation, each section has fields: id, parent\_id,  
title, alias.

I want to have each article have path like  
{root\_section\_alias}/{subsection\_alias}/{article\_alias}

Example urls:

[http://localhost/news/spb/ramstain-rullezz](http://localhost/news/spb/ramstain-rullezz)  
[http://localhost/humor/some-humor-article](http://localhost/humor/some-humor-article)

–  
Excuse for my bad English

---

<div class="post-metadata">

**Author:** ![avanetix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/838e76/32.png) [@avanetix](https://www.ruby-forum.com/u/avanetix)\
**Post date:** [February 28, 2010, 4:17am UTC](https://www.ruby-forum.com/t/seo-friendly-routing/184284/2 "2010-02-28T04:17:50Z")

</div>

Try the plugin at [GitHub - smsohan/acts\_as\_permalinkable: A ruby on rails ActiveRecord plugin for using search engine (SEO) friendly permalink style URLs](http://github.com/smsohan/acts_as_permalinkable)
