Trying to remove index.php from url in latest codeigniter 4.5.1 |
Hi
I've started a new codeigniter 4.5.1 appstarter project at my PC and am having difficult time to remove the index.php from uri 1) This is the virtualhost set in my Apache. Points at public as suggested Code: <VirtualHost *:80> 2) I've enabled the mod_rewrite, restarted apache, edited /etc/hosts file. Then I browse to http://sw , which shows the codeigniter welcome, great! 3) I rename the root/env file to .env and leave it with Code: #-------------------------------------------------------------------- 4) I define a new route in app/config/Routes.php Code: $routes->get('/services', 'Services::index'); Then, my controller app/Controllers/Services.php looks like PHP Code: <?php Then, when I try this url in browser http://sw/services I'm getting 404 ... 5) Tried also replacing the public/.htaccess with the suggested in https://codeigniter.com/user_guide/gener...x-php-file No luck 6) I've also tried setting the baseURL, indexPage, etc. options in app/Config/App.php without luck I've got no ideas left to solve this Thanks for any suggestion
Enrique
https://beza.com.ar |
Messages In This Thread |
Trying to remove index.php from url in latest codeigniter 4.5.1 - by kabeza - 05-02-2024, 08:57 AM
RE: Trying to remove index.php from url in latest codeigniter 4.5.1 - by Bosborne - 05-02-2024, 09:44 AM
RE: Trying to remove index.php from url in latest codeigniter 4.5.1 - by luckmoshy - 05-02-2024, 03:51 PM
RE: Trying to remove index.php from url in latest codeigniter 4.5.1 - by kenjis - 05-02-2024, 05:18 PM
RE: Trying to remove index.php from url in latest codeigniter 4.5.1 - by kabeza - 05-03-2024, 04:43 AM
RE: Trying to remove index.php from url in latest codeigniter 4.5.1 - by demyr - 05-03-2024, 05:31 AM
RE: Trying to remove index.php from url in latest codeigniter 4.5.1 - by kabeza - 05-08-2024, 04:13 AM
RE: Trying to remove index.php from url in latest codeigniter 4.5.1 - by elbambolo - 05-08-2024, 02:56 AM
|