Apache redirect to HTTPS from any port / or host
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
#bearMan
Fusion Application Developer problems encountered by me, solved and shown to the world
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
<VirtualHost *:80> ServerName example.website.com RewriteEngine on RewriteRule ^/$ /prac/ [R] </VirtualHost>