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

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.
19 0
34 followers
Viewed: 59 098 times
Version: 1.1
Category: How-tos
Tags: URL
Written by: qiang
Last updated by: qiang
Created on: Oct 20, 2012
Last updated: 12 years ago
Update Article

Revisions

View all history