remics New Member Oct 23, 2019 #1 Oct 23, 2019 #1 How I can block direct access to all php files in currently folder using .htaccess ? I tried the code below, but doesn't works: <FilesMatch "\.(php)$"> deny from all </FilesMatch>
How I can block direct access to all php files in currently folder using .htaccess ? I tried the code below, but doesn't works: <FilesMatch "\.(php)$"> deny from all </FilesMatch>
D David Active Member Oct 23, 2019 #2 Oct 23, 2019 #2 OpenLiteSpeed partially support the rewrite rule, and the `deny` is not supported. You may want to use a `rewriterule` to do a redirect.
OpenLiteSpeed partially support the rewrite rule, and the `deny` is not supported. You may want to use a `rewriterule` to do a redirect.