Difference between #4 and #5 of
URL management for Websites with secure and nonsecure pages

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.
18 0
35 followers
Viewed: 40 765 times
Version: 1.1
Category: How-tos
Tags: URL
Written by: qiang
Last updated by: qiang
Created on: Oct 20, 2012
Last updated: 5 years ago
Update Article

Revisions

View all history