Openlitespeed htaccess problem (!)

#1
im using openlitespeed, I want to block access to directories but it never works htaccess why ?

for example

site.com/src/ <-- i uploaded this directory inside .htaccess and i want deny from all But not working..

this is for me important
 

Pong

Administrator
#2
OLS only supports rewrite rules in .htaccess. "deny from all" is not rewrite rule hence OLS doesn't support it.

You can try the following rewrite rule in /src/.htaccess and restart OLS to make effective.

RewriteRule ^(.*)$ - [F,L]
 
#3
thanks, i was tried this but wasnt work ! because i must wait 1 hour for LScache finish :D when cache finish i saw its working thanks ;)
 
Top