1

How do I enable deny for a folder through htaccess with openlitespeed? I tried

RedirectMatch 403 ^/folder/?$

and Deny from all

But it didn't work, I still access the folder even after restart openlitespeed

RavinderSingh13
  • 130,504
  • 14
  • 57
  • 93
Germano
  • 9
  • 2

1 Answers1

1

Could you please try following in your htaccess file. This will forbid any URL whose uri starts with folder.

RewriteEngine ON
RewriteRule ^folder - [F,L]
RavinderSingh13
  • 130,504
  • 14
  • 57
  • 93