I am quite new to Apache and Webservers in general.
Anyway I basically copied a site ( love the design, and it was open source ) but can't get the .htaccess to work!
When I set Allowoveride to 'None' it runs fine, so I am assuming this is the fault of the .htaccess. I believe it is a URL rewrite file. On running it i get a 500. Below is the source:
Options -Indexes
RewriteEngine On
RewriteBase /
RedirectMatch 403 ^/?s/(.*)\.php$
RedirectMatch 403 ^/?chat/(.*)\.log$
RewriteRule ^/?d/(.*)$ /dl.php?p=$1 [NC,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?p=$1 [NC,L]
Anyone have any thoughts? The site follows a structure where the index and config is in /srv/http, but all the viewable files which the site actually display are in /srv/http/s.
EDIT: My error_log says this:
[Sun Aug 16 16:50:18.764852 2015] [core:alert] [pid 15976] [client ::1:44860] /srv/http/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration