.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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -