Hi
So far using the Authentication Library has been a breeze - very simple setup and simple to use, overall very happy!
This is the first problem I’ve encountered - I’m looking to implement this system in a subdomain [http://subdomain.domain.com/]
CI seems to be working fine - I get the welcome page, however with any controller extending application I get the error:
The configuration file auth.php does not exist.
I have placed a .htaccess file which contains:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
To be quite honest, I have no idea about .htaccess files.
Another aspect that is different from the base CI install is within config.php - which contains this code instead of the usual:
$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$config['base_url'] .= "://".$_SERVER['HTTP_HOST'];
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
I’m not entirely sure where the problem might be, but I can take a guess that it’s located within the MY_Controller.php script.
Any help would be greatly appreciated - I’m still rather new at CI, and it would be super-awesome, if I could implement this system within a subdomain.
Best,
Andy