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

(This post was last modified: 06-11-2015, 10:43 AM by skunkbad.)

(06-10-2015, 02:33 PM)CroNiX Wrote: You might need this at the top of your htaccess
AllowOverride All

You might also need a ? after index.php here:
RewriteRule ^(.*)$ index.php?/$1 [L]

Hey CroNix,

I'm pretty sure that AllowOverride can only be set in an apache conf file, because AllowOverride is what allows .htaccess to be used in the first place. While on linux and not mac, my AllowOverride is set up in each of my virtual host conf files. For instance:

Code:
<VirtualHost *:80>
        ServerName localhost.beck
        DocumentRoot /var/www/htdocs/beck
        <Directory "/var/www/htdocs/beck">
        RewriteEngine On
                AllowOverride All
    </Directory>
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB