Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

htaccess Options +FollowSymLinks giving me 500 internal server error

This htaccess was working, then i just open it and then close. when i refresh my browser. it's 500 internal server error. I'm sure that my mod_rewrite is on.

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ index.php?page=$1 [L,QSA]

Did i do something wrong here? or any suggestions or comments?

like image 900
Jorge Avatar asked Apr 13 '11 09:04

Jorge


People also ask

How do you fix 500 Internal server error There is a problem with the resource you are looking for and it Cannot be displayed?

There is a problem with the resource you are looking for, and it cannot be displayed. The first solution to a 500 internal server error is to refresh the page. If the error persists, you may try clearing the cookies, deactivating faulty plugins or themes, fixing the . htaccess file, or contacting your hosting provider.

Is 500 an internal server error?

The HyperText Transfer Protocol (HTTP) 500 Internal Server Error server error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.


3 Answers

Make sure you have AllowOverride Options privileges to use Options.

like image 69
Gumbo Avatar answered Sep 28 '22 05:09

Gumbo


I had same problem and fixed it by removing this line:

Options +FollowSymLinks
like image 21
Camilla Horne Avatar answered Sep 28 '22 07:09

Camilla Horne


It appears that if the options directive was configured then it's necessary to set up the directory directive too.
This implies access to the Apache configuration files.
If this is not the case, we can simply comment the line "Options +FollowSymLinks", considering that this directive is by default "Options All" as states the Apache documentation.

Options Directive

Description: Configures what features are available in a particular directory

Syntax: Options [+|-]option [[+|-]option] ...

Default: Options All

Context: server config, virtual host, directory, .htaccess

...

The Options directive controls which server features are available in a particular directory.

Source: http://httpd.apache.org/docs/2.2/mod/core.html#options

like image 20
gimk Avatar answered Sep 28 '22 06:09

gimk