Laravel 4 - Options not allowed here in the .htaccess

4.6k views Asked by At

I have installed Laravel 4 on my public_html folder locally, and I can access its public folder when declaring a vhost pointing to it, through the vhost url.

But, when I try to access Laravel public folder through its parent folders, I get an error in apache logs (error_log): $LARAVEL_HOME/public/.htaccess: Options not allowed here. Even if there is a AllowOverride All in $VHOST_CONF/site.

The first line in the .htaccess (Options Multiviews), is causing this error when I delete it, or put it in $VHOST_CONF/site, it works.

So, How do I do to I access through the hierarchy, without modifying the .htaccess file?

1

There are 1 answers

3
Mark On

In the Apache configuration file for the website set AllowOverride to AllowOverride All similar to the following:

<Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        # changed from None to All
        AllowOverride All
        Order allow,deny
        allow from all
</Directory>