Difference between #7 and #8 of
Using search engine and user friendly URLs

Revision #8 has been created by Maurizio Domba Cerin on May 11, 2011, 8:04:18 AM with the memo:

typo fix
« previous (#7) next (#9) »


Title unchanged

Using search engine and user friendly URLs

Category unchanged


Yii version unchanged

Tags unchanged


Content changed

The [Definitive Guide](/doc/guide/topics.url) introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs. Asssume we have an application that mainly consists of CRUD operations for several object types. For example, in the blog demo, we need CRUD operations for `Post`, `Comment` and `User`. Using `Post` as an example, our goal is to implement its CRUD operations with the following URLs:

* reading a post: `http://example.com/post/99/this+is+a+sample+post`
* listing posts: `http://example.com/post`
* listing posts with pagination and sorting: `http://example.com/post?page=2&sort=title`
* creating a post: `http://example.com/post/create`
19 0
Viewed: 80 992 times
Version: 1.1
Category: Tutorials
Tags: SEO, URL
Written by: qiang
Last updated by: Yang He
Created on: Oct 23, 2009
Last updated: 5 years ago
Update Article


View all history