Jake
Jake

Reputation: 4234

.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.

Upvotes: 4

Views: 3135

Answers (2)

kuldeep.kamboj
kuldeep.kamboj

Reputation: 2606

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

sudo a2enmod rewrite

Upvotes: 11

periklis
periklis

Reputation: 10192

Try replacing it with:

<IfModule mod_rewrite.c> 
  RewriteEngine On
</IfModule

Upvotes: 2

Related Questions