remove compulsory index.php from request URLs |
Hello All,
I am new to CodeIgniter and I'm looking forward to get to know more about this framework. I have just completed the static pages tutorial, and now I can access pages of my site (hosted on network NAS) in such a way like
I would like to access pages in a manner like http://nas/TestTwo/pages/view My routes.php is as simple as: PHP Code: $route['pages'] = 'pages/view/$1'; Cheers, tmx
It is well documented here:
http://www.codeigniter.com/user_guide/ge...x-php-file Make sure you have set your $config['base_url'] in the config file. In your case it looks like your base url would be 'http://nas/TestTwo/'. Hope that helps, Paul (09-01-2016, 01:03 PM)PaulD Wrote: It is well documented here: Hey, That did the work. I've just created the .htaccess next to the index.php. Thanks! Thomas |
Welcome Guest, Not a member yet? Register Sign In |