Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Make page as secure and non secure pageMake page as secure and non secure page
Previous
 
Next
New Post
7/28/2006 5:40 AM
 

Hi ,

I want to make 1 of my dnn page as secure and non secure page.i.e

http://www.example.com/abc.html===> non secure page considering the friendly url implemented

and

https://www.example.com/abc.html===> for secure page considering the friendly url implemented.

So i will have 2 links one for secure and other for non secure. So if user want to fill the information choosing secure it should take them to http://www.example.com/abc.html and if user choose non secure link then it should take them to https://www.example.com/abc.html .

Please let me know how will i do the above task.

Thanks every body,

Ashok

 
New Post
7/28/2006 9:27 AM
 

 

This is how I do it.  Just put something like this in the top of your skin.

<script language="Javascript1.1" type="text/javascript">
    if(location.protocol.toLowerCase() =='http:' &&
       ( location.href.toLowerCase().indexOf('login') > -1 || 
         
location.href.toLowerCase().indexOf('590') > -1  ))  
             location.href = location.href.replace('http:','https:');

    if(location.protocol.toLowerCase() =='https:'
&& 
         location.href.toLowerCase().indexOf('login') == -1 && 
         location.href.toLowerCase().indexOf('590') == -1)
             location.href = location.href.replace('https:','http:');
</script>

tabid=590 is my shopping cart that does the checkout so I want SSL there, and I also turn it on when someone is logging in.

You can see it in action on my site.


DotNetNuke Modules from Snapsis.com
 
New Post
8/6/2006 11:47 PM
 
This is great and it worked perfectly...

Although my ssl is for www.mydomain.com, and people get an error when visiting just mydomain.com

Can this be slightly altered to take care of making sure the www is in the address too?

Thanks
 
New Post
8/7/2006 1:40 AM
 

<script language="Javascript1.1" type="text/javascript">
    if(location.protocol.toLowerCase() =='http:' &&
       ( location.href.toLowerCase().indexOf('login') > -1 || 
         
location.href.toLowerCase().indexOf('590') > -1  ))  
{
      if(location.href.toLowerCase().indexOf("www.") > -1
      location.href = location.href.replace('http:','https:');
   else
      location.href = location.href.replace('http://','https://www.');
}

    if(location.protocol.toLowerCase() =='https:'
&& 
         location.href.toLowerCase().indexOf('login') == -1 && 
         location.href.toLowerCase().indexOf('590') == -1)
            location.href = location.href.replace('https:','http:');

</script>


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Make page as secure and non secure pageMake page as secure and non secure page


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out