RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} !^/ampache/.*\.(m3u|pls|mp3) RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]