Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.htaccess causing 500 error

I have only a single line in the .htaccess file:

RewriteEngine On

Taking that line out makes the error go away. I've checked as many places as I know of for the AllowOverride rule (but I know next to nothing about how that works) and I thiiiiink it's set correctly, but I don't know for sure.

I can't figure out what's going on and I'm not sure what to even check. Any ideas? Thanks in advance.

like image 764
Jake Avatar asked Dec 11 '22 14:12

Jake


2 Answers

Enable the rewrite module in apache by command on ( for Ubuntu )

sudo a2enmod rewrite
like image 63
kuldeep.kamboj Avatar answered Dec 23 '22 21:12

kuldeep.kamboj


Try replacing it with:

<IfModule mod_rewrite.c> 
  RewriteEngine On
</IfModule
like image 32
periklis Avatar answered Dec 23 '22 19:12

periklis