Hi,
Help me with .htaccess for openlitespeed.
My attempts are unsuccessful.
code orginal apache :
Thank you very much .
Help me with .htaccess for openlitespeed.
My attempts are unsuccessful.
code orginal apache :
Apache config:
# Prevent directory listings
Options -Indexes
# Prevent visitors from viewing files directly
<Files "\.(sdb|md|html|txt)$">
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</Files>
# URL rewrites
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(inc/|themes/|tmp/).*\.(php|html)$ - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
</IfModule>
Thank you very much .
Last edited: