add: handle sending HTTP request to HTTPS port

This commit is contained in:
mcolonna 2025-06-09 16:25:45 +02:00
parent aa2a0d6f71
commit b7cb3733ec
3 changed files with 8 additions and 0 deletions

3
srcs/www/497.php Normal file
View file

@ -0,0 +1,3 @@
<?php
http_response_code(301);
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI']);