Revision #5 has been created by qiang on Oct 20, 2012, 11:37:32 AM with the memo:
updated title
« previous (#4)
Changes
Title
changed
URL management infor Websites with secure and nonsecure pages
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
URL
Content
unchanged
[...]
);
```
In the above code, we configure `UrlManager` to secure the login, sign-up and settings pages. If you want to secure other pages, just add the corresponding routes to the `secureRoutes` array shown above.
We can now use `Yii::app()->createUrl()` as usual in places where we need to create URLs. Our `UrlManager` will automatically determine if the generated URLs need to be prefixed with proper host info. The `UrlManager` will also do the 301 redirection work if needed.