I am trying to set a .htaccess file at "/var/www/html/www/development/wp-content/uploads/" (I have a wordpress instance at /developmet/). The .htaccess looks like this.
Now when I restart `service lsws restart` and try to access a file at `wp-content/uploads/scopes/unlocked-scopes/01bd94b3de_unlocked.pdf` I am getting
This page isn’t working
skopezy.com is currently unable to handle this request.
HTTP ERROR 500
When I remove htaccess restart then everything works.
I ahve tested the above code in my local apache host setup. Is there anything that I am missing ?
Code:
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} (unlocked-scopes.*)
RewriteRule ^scopes/unlocked-scopes/(.*)$ dl-file.php?file=$1 [QSA,L]
</IfModule>
This page isn’t working
skopezy.com is currently unable to handle this request.
HTTP ERROR 500
When I remove htaccess restart then everything works.
I ahve tested the above code in my local apache host setup. Is there anything that I am missing ?