Yii Framework Forum: Turn off HTTPS on menu and links - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Turn off HTTPS on menu and links Rate Topic: -----

#1 User is offline   chuntley 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 69
  • Joined: 23-April 10

Posted 28 June 2012 - 08:24 AM

I have certain pages on my website where SSL is enabled (for example, the login and registration pages). However once the user goes to those pages and is back on the website, I want the links in the menu and CHtml links to no longer use https:// (they automatically add https:// based on the current URL). Ideally I would like every link to start with http://, then once the page loads it can determine if it needs to switch to https://.

Is there a way to globally override that? Or how would I need to go about making that change?

Thanks!
0

#2 User is offline   jowen 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 191
  • Joined: 13-July 11
  • Location:Malaysia

Posted 28 June 2012 - 10:08 PM

Hi,

This link Https set on certain papesperhaps suit your requirement. Some how ssl setting is required before https can work on certain pages. i facing same problem now.
0

#3 User is offline   chuntley 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 69
  • Joined: 23-April 10

Posted 29 June 2012 - 07:25 AM

jowen, that is actually very similar to the method I'm using to force SSL on certain pages.

A more specific way to ask my question is:

How do you get normalizeUrl() to use HTTP or HTTPS by default?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users