Eliminating the index segment in a URL (htaccess) |
[eluser]bretticus[/eluser]
"test" is your controller file so your URL should be: Code: http://localhost/CodeIgniter/test/ htaccess will rewrite that internally as: Code: http://localhost/CodeIgniter/index.php/test/ according to your Rewrite code. CodeIgniter will automatically call your index method/function in your test controller unless you specify otherwise. Please note: Code: http://localhost/CodeIgniter/test/ and Code: http://localhost/CodeIgniter/test/index are equivalent. Anything that needs to work outside of the controller/method URL convention, can be handles via routes (no need to update htaccess.) See Routing |
Messages In This Thread |
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-03-2010, 11:50 AM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-03-2010, 05:16 PM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-03-2010, 05:47 PM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-03-2010, 07:09 PM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-03-2010, 07:35 PM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-04-2010, 09:28 AM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-04-2010, 10:23 AM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-04-2010, 12:36 PM
Eliminating the index segment in a URL (htaccess) - by El Forum - 08-07-2010, 06:27 PM
|