CodeIgniter Forums
Help needed with basics! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Help needed with basics! (/showthread.php?tid=68930)



Help needed with basics! - SuperElectric - 09-14-2017

Hi folks, 

So, I'm following the static page tutorial and can't get the stupid paths to work properly. Hence I can see '/index.php/about' but not '/about' I've removed 'index.php' as the index page in the config file and added an .htaccess file in the root dir. What's going wrong? I'm using Apache on a Mac with the project in a subfolder.


RE: Help needed with basics! - Muzikant - 09-15-2017

Hi SuperElectric.

It looks like a problem with .htaccess file (.htaccess file is for Apache servers only, so be sure you are using one). Try different configurations. This topic could be helpful: htaccess examples for codeigniter.

I wish you patience at the beggining and a lot of great times with CodeIgniter. :-)


RE: Help needed with basics! - Muzikant - 09-15-2017

You could also try RewriteBase rule in .htaccess:

Code:
RewriteEngine On
RewriteBase /path/to/subfolder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]



RE: Help needed with basics! - SuperElectric - 09-15-2017

Thanks for the reply, I'm running Apache/2.4.18 (Unix) with El Capitan. I'll go through the htaccess examples. I have a feeling it could be a PHP setting I need to change though.