[eluser]LuckyFella73[/eluser]
Hi Rash,
on some webservers it can be a bit tricky to set up the
.htaccess in the right combination with uri_protocol in
config.php
Your welcome controller is working - I'm quite sure you
just have to configurate the .htaccess and uri_protocol.
Just a usefull snippet I found in these forums for config.php:
Code:
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| If this is not set then CodeIgniter will guess the protocol, domain and
| path to your installation.
|
*/
if(isset($_SERVER['HTTP_HOST']))
{
$config['base_url'] = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ? 'https' : 'http';
$config['base_url'] .= '://'. $_SERVER['HTTP_HOST'];
$config['base_url'] .= isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] != '80' ? ( ':'.$_SERVER['SERVER_PORT'] ) : '';
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
}
else
{
$config['base_url'] = 'http://localhost/your_project/';
}
When uploading your project you don't have to think about setting the base_url
anymore.
Try different .htaccess examples and try each possible uri_protocol when checking
a .htaccess.
Cheers