Unable to start Apache Server-Error in RewriteEngine
I have used the code provided in the deployment section of the documentation, all I have done is change the directly to match with my setup but when start the apache server it fails at line
Here is the section:
RewriteEngine on `this is the line with error`
RewriteRule /admin(.*)$ https://MY-IP-ADDRESS/admin$1 [L,R=301]
CustomLog /var/log/httpd/askbot/access_log common
Here is the error:
* Starting web server apache2 Syntax error on line 38 of /etc/apache2/sites-enabled/askbot:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Action 'start' failed.
The Apache error log may have more information.
also I am not sure how to configure following two lines: