Following tutorial and getting a 404 when accessing controllers |
I'm following the tutorial and got as far as the controllers section. Accessing http://localhost/codeIgniter/index.php/blog works but accessing http://localhost/codeIgniter/index.php/blog/comments does not. It throws a 404 error.
I've got base_url set as so: $config['base_url'] = 'http://localhost/codeIgniter'; I've tried adding this to my .htaccess in the /www/codeIgniter directory (as well as a couple variations I found while googling): RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] Mod rewrite is installed. I've got AllowOverride All in my httpd.conf file. I also set the index_page as blank. I've also just tried not rewriting anything. I'm running on WAMP on Windows 7 with Apache 2.435, and have tried PHP 5.6 and 7. Have been at this for a couple hours now, please help? TIA |
Messages In This Thread |
Following tutorial and getting a 404 when accessing controllers - by PopcornForest - 01-07-2019, 10:56 PM
RE: Following tutorial and getting a 404 when accessing controllers - by jreklund - 01-08-2019, 10:49 AM
RE: Following tutorial and getting a 404 when accessing controllers - by dave friend - 01-08-2019, 01:36 PM
RE: Following tutorial and getting a 404 when accessing controllers - by chrisknew - 02-14-2019, 06:27 PM
RE: Following tutorial and getting a 404 when accessing controllers - by InsiteFX - 02-16-2019, 04:30 AM
|