Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 3 Url without controller
#3

(This post was last modified: 04-02-2016, 03:50 AM by stefan.)

I just did my routes like this:
Code:
//Default pages routes
$route['(:any)'] = 'Controller_name/$1';
$route['default_controller'] = 'Controller_name';
And htacces like:
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
And it worked for me. But when i try the same in CI3 it won't work

So maybe I better can use CI2 for my project?
Or is there a other way?
Reply


Messages In This Thread
Codeigniter 3 Url without controller - by stefan - 04-01-2016, 05:44 PM
RE: Codeigniter 3 Url without controller - by stefan - 04-02-2016, 03:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB