This topic is locked
[SOLVED]

how can i do this?

9/26/2021 10:30:46 AM
PHPRunner General questions
J
Jan author

I have uploaded a project to a domain
But the application does not appear online. That's because the website is hhtp,
but this should be : https
Do I have to do this adjustment in phprunner ? Thanks.

Tandy 9/26/2021

That is a server direct, Not a PHPRunner setting. If you have Cpanel you can make everything go to https:// if not then you will have to use .htaccess on your file server.

<IfModule mod_rewrite.c>
RewriteEngine on

# Redirect if http
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# set header if https
# Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS

</IfModule>
J
Jan author 9/26/2021

Thanks for the helpful tip !