开发者

jQuery BBQ, CakePHP and SSL/HTTPS

I'm using the jQuery BBQ plugin for # hash browsing. The backend is CakePHP.

I have URLs of type http://blabla.com/url#开发者_开发技巧url1, http://blabla.com/url#url2 and based on that load controller actions url1, url2 etc.

How to implement the following: url1 should be HTTP-based and url2 should be HTTPS, e.g. http://blabla.com/url#url1, https://blabla.com/url#url2.

Is it possible? Thanks in advance.


You can use the the Ssl Component, define your conditions in the app_controller on the url, then use

$this->Ssl->force();

and

$this->Ssl->unforce();

to call your site with or without https

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜