Welcome Guest, Not a member yet? Register   Sign In
Removing Index.php on OSX Yosemite
#1

CodeIgniter newbie here.

I am trying to get the index.php file removed from the url. Here what I have done so far.

I have created an .htaccess file in the root at the same level as application and have this in the file
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

I have set $config['index_page'] = '';

I get a 404 not found error with this setup.

When I uncomment Include /private/etc/apache2/extra/httpd-vhosts.conf in the httpd.conf file I get 403 Forbidden.

I assume that the url after removing the index.cfm would be localhost/sites/xxxx/blog

Can anyone help.  I have scoured the internet trying various combinations of things and I am tired.  I assume this is a OSX thing.
Reply


Messages In This Thread
Removing Index.php on OSX Yosemite - by dutchlab - 06-10-2015, 10:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB