I am trying to enable the rewrite engine on my .htaccess file, but I encounter 500 Internal Server Error.
I am using Apache/2.4.18 (Ubuntu) Server
following some examples in ubuntu community, they suggest to change the < Directory > in the apache2.conf. I made this change so my directory is looking like this
<Directory /home/user/public_html/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
in the error.log file i have this error
[Wed May 03 19:08:42.212552 2017] [core:alert] [pid 7729] [client 127.0.0.1:43650] /home/user/public_html/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
when I remove the .htaccess file everything works fine
here is my .htaccess file
RewriteEngine On
RewriteRule ^katastimata adrianio-udragogio.php [NC, L]