2016-06-04 6 views

Antwort

2

einfach ein paar Regeln für https und Erweiterung Modifikation kombinieren

# Prevent endless loop 
RewriteCond %{ENV:REDIRECT_STATUS} ^$ 
# and redirect php to html 
RewriteRule ^(.+)\.php$ https://%{HTTP_HOST}/$1.html [L] 

# Enforce https 
RewriteCond %{HTTPS} off 
RewriteRule^https://%{HTTP_HOST}%{REQUEST_URI} [L] 

# Finally serve content 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^(.+)\.html /$1.php [L] 
Verwandte Themen