Redirect in the Panel

Hello!
Can I add a subdomain www.domain and then add a redirect from www.domain to https: // domain?

p.s. in the panel itself in the section - Domains

If you want to redirect a domain to https:// then you have to go into your htdocs folder, create (or edit) a file called .htaccess and add this in:

RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
1 Like

section - Domains

What about the domains section? Use the code @cookie1982 provided.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.