Welcome Guest, Not a member yet? Register   Sign In
Tutorial Routing
#3

Yes, I am doing the tutorial.

The tutorial said to add the second and third line below to config/routes.php.

defined('BASEPATH') OR exit('No direct script access allowed');

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

$route['default_controller'] = 'welcome';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;

Then the tutorial said to go to index.php/about, and I should see the view method in the pages controller.

I added "administrators"  and "all"  to the permissions for the ci directory and all of its contents, and I restarted my Mac to install the new permissions.

I always clear my browser cache before I try a new URL.


I tried the following URL's with the following responses:

1.  http://localhost:8888//ci/index.php/about

"404 Page Not Found
The page you requested was not found."

2.  http://localhost:8888//ci/application/controllers/about

"Forbidden
You don't have permission to access /ci/application/controllers/about on this server."

3.  http://localhost:8888//ci/about

"Not Found
The requested URL /ci/about was not found on this server."
Reply


Messages In This Thread
Tutorial Routing - by pilot311 - 06-17-2019, 09:56 AM
RE: Tutorial Routing - by donpwinston - 06-17-2019, 11:15 AM
RE: Tutorial Routing - by pilot311 - 06-17-2019, 01:22 PM
RE: Tutorial Routing - by donpwinston - 06-17-2019, 04:55 PM
RE: Tutorial Routing - by ciadmin - 06-17-2019, 05:41 PM
RE: Tutorial Routing - by InsiteFX - 06-18-2019, 04:00 AM
RE: Tutorial Routing - by pilot311 - 06-19-2019, 05:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB