What is Options +FollowSymLinks?

前端 未结 3 1535
無奈伤痛
無奈伤痛 2021-02-01 02:50

I am using a Lamp server on my computer. I started to use Laravel php framework. In my .htaccess , If I use Options +FollowSymLinks , I get 500 error. And If I co

3条回答
  •  别那么骄傲
    2021-02-01 03:22

    You might try searching the internet for ".htaccess Options not allowed here".

    A suggestion I found (using google) is:

    Check to make sure that your httpd.conf file has AllowOverride All.

    A .htaccess file that works for me on Mint Linux (placed in the Laravel /public folder):

    # Apache configuration file
    # http://httpd.apache.org/docs/2.2/mod/quickreference.html
    
    # Turning on the rewrite engine is necessary for the following rules and
    # features. "+FollowSymLinks" must be enabled for this to work symbolically.
    
    
        Options +FollowSymLinks
        RewriteEngine On
    
    
    # For all files not found in the file system, reroute the request to the
    # "index.php" front controller, keeping the query string intact
    
    
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php/$1 [L]
    
    

    Hope this helps you. Otherwise you could ask a question on the Laravel forum (http://forums.laravel.com/), there are some really helpful people hanging around there.

提交回复
热议问题