Welcome Guest, Not a member yet? Register   Sign In
Help needed with basics!
#1

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.
Reply
#2

(This post was last modified: 09-15-2017, 12:58 AM by Muzikant.)

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. :-)
Reply
#3

(This post was last modified: 09-15-2017, 01:07 AM by Muzikant.)

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]
Reply
#4

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB