B bySoft New Member Feb 20, 2020 #1 Feb 20, 2020 #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
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
P Pong Administrator Feb 21, 2020 #2 Feb 21, 2020 #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]
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]
B bySoft New Member Feb 23, 2020 #3 Feb 23, 2020 #3 thanks, i was tried this but wasnt work ! because i must wait 1 hour for LScache finish when cache finish i saw its working thanks
thanks, i was tried this but wasnt work ! because i must wait 1 hour for LScache finish when cache finish i saw its working thanks