Welcome Guest, Not a member yet? Register   Sign In
CI in apache userdirs (domain.com/~user/public/ci)
#12

(This post was last modified: 03-21-2021, 08:56 PM by John_Betong.)

Quote:@evansharp,
If I match any url to the stock Home controller ($routes->get('/(:any)', 'Home::index'); ), I can get the splash page. This supports what the 404 error has been indicating all along: that the router is trying to match the mod_userdir part of the url to a controller.

Great progress. I prefer not to modify the original installation and modify the Routes.php to load a NewController.php.

Copy the Home.php Controller to a NewController.php. Numerous modifications to the NewController.php are required to accept the new Routes.php instructions. Also create new NewController.php methods and ensure the URL activates the relevant methods.

Also activate .htaccess and test for "Pretty Urls".
Reply


Messages In This Thread
RE: CI in apache userdirs (domain.com/~user/public/ci) - by John_Betong - 03-21-2021, 08:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB