# Allow cPanel DCV and Let's Encrypt validations
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

# Enable Rewrite Engine
RewriteEngine On

# Redirect all HTTP traffic to HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.nrislawfirm.com/$1 [R=301,L]

# Optional: redirect non-www to www
RewriteCond %{HTTP_HOST} ^nrislawfirm\.com$ [NC]
RewriteRule ^(.*)$ https://www.nrislawfirm.com/$1 [R=301,L]

