CodeIgniter Forums
mod_rewrite .htaccess helloworld - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: mod_rewrite .htaccess helloworld (/showthread.php?tid=46741)



mod_rewrite .htaccess helloworld - El Forum - 11-13-2011

[eluser]justdo[/eluser]
CodeIgniter at a Glance says CI has a Friendly Community of Users. so here
it goes.

Trying out the first controller helloworld and I keep getting the
domain.com/index.php I have reviewed five threads related to this and as
best as I can see I have adhered to /user_guide/general/urls.html How did I
screw it up as I keep getting the domain.com/index.php

CI has been located in domain.com/CI/
application & system folders have been located above web root

/home/username/public_html/ci/index.php has variables
defined

line 59: $system_path = '/home/username/system';
line 75: $application_folder = '/home/username/application';
line 22: define('ENVIRONMENT', 'development');

/home/username/application/config/config.php has been
defind



<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config['base_url'] = '//domain.com/ci/';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
$config['url_suffix'] = '';

$config['enable_hooks'] = FALSE;
$config['subclass_prefix'] = 'MY_';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd'; // experimental not curre
$config['log_threshold'] = 4;
$config['log_path'] = '';
$config['log_date_format'] = 'Y-m-d H:iConfused';
$config['cache_path'] = '';
......
/* End of file config.php */
/home/username/public_html/.htaccess has been defined

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]