Hello,
I recently upgraded from Apache to Litespeed, and I have multiple directives in the "Apache Includes Editor" in the WHM interface under the "Pre Main Include" for "All Versions."
Examples of these directives include:
These directives no longer work when using Litespeed. How do I get them to work? I also attempted adding them to a .htaccess file within the public_html folder of a user (I removed the "Directory" wrapper), and they still didn't have any effect.
Thanks!
Jake
I recently upgraded from Apache to Litespeed, and I have multiple directives in the "Apache Includes Editor" in the WHM interface under the "Pre Main Include" for "All Versions."
Examples of these directives include:
Apache config:
# Force HTTPS.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
# Prevent wp-config.php from being accessed.
<Files "wp-config.php">
Require all denied
</Files>
<Directory ~ "(\/home\/.*\/public_html\/.*(wp-content\/uploads))">
AllowOverride None
<Files ~ "\.ph(?:p[345]?|t|tml)$">
Require all denied
</Files>
</Directory>
Thanks!
Jake
Last edited: