.htaccess blocks all file access, regardless of commands -


my .htaccess file blocking everything, when there no commands in so.

here file contents

rewriteengine on rewritecond %{http_referer} !^http://www.example.com/.* rewriterule .*\.mp3 - [nc,f] 

this blocking files of type, regardless of request comes from. in fact if delete lines , leave

rewriteengine on 

everything still blocked.

please help.

cheers

i solved myself. turns out .htaccess not being honoured @ all.

the solution remove +followsymlinks apache config file, in directory area

<directory "/var/www">    allowoverride </directory> 

also modrewrite may have not been enabled. did command line with.

sudo a2enmod rewrite 

and restarted apache

service apache2 restart 

hope helps else. cheers


Comments