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