.htaccess and routing |
[eluser]ibnclaudius[/eluser]
I want to send the parameter like: Quote:http://localhost/index.php/myparameter so I made this routing: Code: $route['(:any)'] = 'events/event/$1'; cause my main controller is something like: Code: class Events extends CI_Controller { until this point everything works, but the error starts when trying to remove the index.php from the url, by creating this .htaccess: Code: RewriteEngine on and removing the index.php from: Code: $config['index_page'] = 'index.php'; but when I try to access an url like http://localhost/myparameter I get a not found! :S And yes, mod_rewrite is enabled! |
Messages In This Thread |
.htaccess and routing - by El Forum - 03-07-2013, 07:51 PM
.htaccess and routing - by El Forum - 03-08-2013, 01:16 PM
.htaccess and routing - by El Forum - 03-08-2013, 01:42 PM
.htaccess and routing - by El Forum - 03-08-2013, 02:02 PM
.htaccess and routing - by El Forum - 03-08-2013, 02:09 PM
.htaccess and routing - by El Forum - 03-08-2013, 02:11 PM
.htaccess and routing - by El Forum - 03-08-2013, 02:23 PM
.htaccess and routing - by El Forum - 03-08-2013, 02:30 PM
.htaccess and routing - by El Forum - 03-08-2013, 03:05 PM
|