Welcome Guest, Not a member yet? Register   Sign In
SSL certificate
#1

[eluser]alexaaaaaaaaaa[/eluser]
Hi, i have CI application and i have installed on my server SSL certification and i want to install it in some pages, but my page is like this
<?php $this->load->view('header'); ?> <?php $this->load->view('sidebar'); ?> <?php $this->load->view('footer'); ?>
How can i call them with https ? i mean if i comm this blocks of php it's working (the SSL)
But how can i "call" them with https
Thanks,
Alexa
#2

[eluser]Clooner[/eluser]
[quote author="alexaaaaaaaaaa" date="1277223201"]Hi, i have CI application and i have installed on my server SSL certification and i want to install it in some pages, but my page is like this
<?php $this->load->view('header'); ?> <?php $this->load->view('sidebar'); ?> <?php $this->load->view('footer'); ?>
How can i call them with https ? i mean if i comm this blocks of php it's working (the SSL)
But how can i "call" them with https
Thanks,
Alexa[/quote]

You access ssl part of your site using https://yourdomain.com and not http://yourdomain.com. Both can point to the same files but will be served in a different way, one encrypted and the one not.

So you need to make sure the https part points to the same directory on your server as your http part and will need to change your base url from http://yourdomain to https://yourdomain.com. Then you will need to make sure when the user access the website over http he/she gets redirect to https and voila you will serve your website over https.
#3

[eluser]alexaaaaaaaaaa[/eluser]
ok, so what can i do is this , i have to edit the config.php file and then go and create a .htaccess file and rewrite the url ...i'm i right?
#4

[eluser]Clooner[/eluser]
[quote author="alexaaaaaaaaaa" date="1277228148"]ok, so what can i do is this , i have to edit the config.php file and then go and create a .htaccess file and rewrite the url ...i'm i right?[/quote]
In short, yes!
#5

[eluser]alexaaaaaaaaaa[/eluser]
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R,L]
this is what i have done but i'm feeling stupid becouse i'm feeling like this not very professional.
Anw thanks for your help.




Theme © iAndrew 2016 - Forum software by © MyBB