Welcome Guest, Not a member yet? Register   Sign In
Should there be an htaccess file?
#1

[eluser]Lpeek[/eluser]
Hey! I'm new to CI and just wondering if there should be an htaccess file? I cant get the routing to work by just following the tutorial, and it seems bizarre that there is no htaccess file by default? I didn't think url rewriting was possible without using mod_rewrite?

With routing set to:

Code:
$route['default_controller'] = 'pages/view';
$route['(:any)'] = 'pages/view/$1';

I can go to www.mysite.com and I get the correct page. but going to www.mysite.com/pages/view/home I just get a 404.

Am I supposed to create an htaccess file which it just doesn't tell you about in the user guide? (or maybe it does tell you and I just missed it?)

Cheers!


Messages In This Thread
Should there be an htaccess file? - by El Forum - 10-11-2012, 08:03 AM
Should there be an htaccess file? - by El Forum - 10-11-2012, 08:07 AM
Should there be an htaccess file? - by El Forum - 10-11-2012, 08:09 AM
Should there be an htaccess file? - by El Forum - 10-11-2012, 08:26 AM
Should there be an htaccess file? - by El Forum - 10-11-2012, 08:45 PM
Should there be an htaccess file? - by El Forum - 10-12-2012, 12:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB