.htaccess 105 B

1234
  1. RewriteEngine On
  2. RewriteCond %{SERVER_PORT} !^443$
  3. RewriteRule (.*) https://%{HTTP_HOST}/X/$1 [R=301,L]