I already develop a system in windows base machine using xampp and codeIgnitor, So i change development environment to mac os 10.9 same system give me error 404. So putting index.php to the URL the issue fixed. But I wonder how it's happen. Cause I already remove index.php using htaccess file in windows environment. I want to know how I remove index.php in mac os 10.9.
This is my htaccess file content.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]
/Applications/XAMPP/xamppfiles/etc/httpd.conf File also edited as follows
- enable rewrite module "LoadModule rewrite_module modules/mod_rewrite.so"
change username
User ****** Group daemon
change permissions
AllowOverride All Require all granted
CodeIgnitor config file also edited as follows
- change base url
$config['base_url'] = 'http://localhost/ci2.2/';
- Remove index.php
$config['index_page'] = '';
- Change URL Protocol
$config['uri_protocol'] = 'AUTO';
I put my files in /Applications/XAMPP/xamppfiles/htdocs/ci2.2 directory