![]() |
routing - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: routing (/showthread.php?tid=64468) Pages:
1
2
|
RE: routing - davy_yg - 02-24-2016 I have use this .htaccess index: Code: Code: RewriteEngine On to remove index.php but it's still there. http://[::1]/ci3/index.php/welcome/table to show table I still have to type the above url. RE: routing - freddy - 02-25-2016 (02-24-2016, 10:25 AM)davy_yg Wrote: I have use this .htaccess index:here goes to config.php find it, take a look my projects, Code: $config['base_url'] = ''; cuti is name folder my projects change as yours, hope this help Code: $config['base_url'] = 'http://localhost/cuti/'; RE: routing - keulu - 02-25-2016 and check this var too in the config file $config['index_page'] = ''; NOT $config['index_page'] = 'index.php'; RE: routing - davy_yg - 02-25-2016 I did all that and still remains the same. RE: routing - skunkbad - 02-25-2016 Is mod_rewrite actually enabled? RE: routing - InsiteFX - 02-25-2016 You can check your .htaccess file is working by typing this in: Code: TYPE TEST <- If it is working you will get an error! Also if your OS is Windows it will not remove it the first time. Also your editor can cause this if not configured correctly. RE: routing - davy_yg - 02-25-2016 .htaccess Code: TYPE TEST <- I already try using the new .htaccess content and have not been successful yet erasing the index.php to show content: http://localhost/ci3/index.php/welcome/input Can you help? It only shows this error: Product Input A PHP Error was encountered Severity: Notice Message: Undefined variable: attributes Filename: views/product_input.php Line Number: 13 Backtrace: File: C:\xampp\htdocs\ci3\application\views\product_input.php Line: 13 Function: _error_handler File: C:\xampp\htdocs\ci3\application\controllers\Welcome.php Line: 33 Function: view File: C:\xampp\htdocs\ci3\index.php Line: 292 Function: require_once RE: routing - InsiteFX - 02-26-2016 Try removing this line from your .htaccess file, people use it but it is not required as long as you setup your html correct and it can cause problems in loading. RewriteRule ^(system|application|cgi-bin) - [F,L] |