Eliminating the index segment in a URL (htaccess) |
[eluser]tim042829[/eluser]
[quote author="bretticus" date="1280895398"]"test" is your controller file so your URL should be: Code: http://localhost/CodeIgniter/test/ Actually, the URL above is generating a 404 error Quote:htaccess will rewrite that internally as:Calling the previous URL is successful. Quote:CodeIgniter will automatically call your index method/function in your test controller unless you specify otherwise.And that previous URL request is also generating a 404 error. Quote:Anything that needs to work outside of the controller/method URL convention, can be handles via routes (no need to update htaccess.)I appreciate the response. With the 404 error from the http://localhost/CodeIgniter/test/ URL, I would then guess that there is something wrong with my code or with the .htaccess code, or in the apache configuration itself. Any ideas where to look? |
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
|