• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help needed with basics!

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.

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. :-)

You could also try RewriteBase rule in .htaccess:

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

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.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.