11 lines
261 B
ApacheConf
11 lines
261 B
ApacheConf
RewriteEngine On
|
|
|
|
# Ensure HTTPS
|
|
RewriteCond %{HTTPS} off
|
|
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
|
|
# Handle Clean URLs
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^(.*)$ index.php?route=$1 [QSA,L]
|