.htaccess 129 B

1234
  1. ErrorDocument 404 /404.php
  2. RewriteEngine On
  3. RewriteCond %{HTTPS} !=on
  4. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]