Welcome Guest, Not a member yet? Register   Sign In
SSL in CodeIgnitor
#7

[eluser]got 2 doodle[/eluser]
OK, It's a it weird that I'm basically the only one posting to this thread, but I think a few people have read the post and hopefully got some value out of it.

Now I need some help from the guru's on this board to take things to the next step.

The site is up and running, I have SSL where I want it and due to a fluke error on the whois information for the site, the administrative contact information is incorrect so the dedicated ssl certificate cannot be administered at this time (once the client sorts their end out all will be cool). Anyway so now the site is using shared ssl, at least I know it works.

I am having problems with the .htaccess removing the index.php (ya ya, heard it all before I hear you cry!)

I can remove the index.php with the .htaccess file submitted by Elliot Haughin no problems until I try the secure url.

here is the .htaccess
Quote:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404 /index.php
</IfModule>

all pretty normal stuff

also in config/config.php
Code:
$config['index_page'] = "";

this works no problem until I try a secure URL
Locally everything works with stripping out index.php for http: and https: but remote server is a no go on the shared ssl connection.

this is a portion of my config/config.php that defines the base_url and secure_base_url
Code:
$setup = 'remote'; // local or remote
switch ($setup) {
case 'local';
    $config['index_page'] = "";
    $config['base_url'] = "http://".$_SERVER['SERVER_NAME'];
    $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
    $config['secure_base_url'] = "https://".$_SERVER['SERVER_NAME'];
    $config['secure_base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
break;
case 'remote';
    $config['index_page'] = "index.php";
    $config['base_url']    = "http://www.tatacentre.ca/";
    $config['secure_base_url']    = "https://www.tatacentre.sslpowered.com/tatacentre.ca/";
break;
}
For now index.php is left in there for the remote configuration.

I have determined that mod_rewrite is working on the remote server but my secure links only work if I leave the index.php in there.

Any suggestions???

aaaaaa!!
doodle :-S


Messages In This Thread
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:48 PM
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:49 PM
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:51 PM
SSL in CodeIgnitor - by El Forum - 11-18-2008, 12:53 PM
SSL in CodeIgnitor - by El Forum - 11-19-2008, 06:54 PM
SSL in CodeIgnitor - by El Forum - 11-20-2008, 09:10 AM
SSL in CodeIgnitor - by El Forum - 12-02-2008, 09:14 AM
SSL in CodeIgnitor - by El Forum - 12-11-2008, 02:16 PM
SSL in CodeIgnitor - by El Forum - 01-12-2009, 06:57 PM
SSL in CodeIgnitor - by El Forum - 01-12-2009, 09:57 PM
SSL in CodeIgnitor - by El Forum - 01-13-2009, 10:04 AM
SSL in CodeIgnitor - by El Forum - 01-17-2010, 08:49 PM
SSL in CodeIgnitor - by El Forum - 02-03-2011, 08:31 AM
SSL in CodeIgnitor - by El Forum - 02-04-2011, 06:19 AM
SSL in CodeIgnitor - by El Forum - 03-10-2011, 12:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB