Jump to content

[Answered] Force webmail https redirect


qclass

Recommended Posts

Go to the folder of your subdomain, and create a file named .htaccess and paste the following content into the file:

IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://webmail.galactico.fashion/$1 [R,L]
</IfModule>
That's redirect all HTTP requests on the subdomain to https. Hope that helps! :)
Link to comment
Share on other sites

Go to the folder of your subdomain, and create a file named .htaccess and paste the following content into the file:

IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://webmail.galactico.fashion/$1 [R,L]
</IfModule>
That's redirect all HTTP requests on the subdomain to https. Hope that helps! :)

 

 

Everything (e.g. xxx) gets redirected to https://webmail.galactico.fashion/xxx

Link to comment
Share on other sites

I recommend adding an exception for the .well-known directory to allow ssl to be renewed in the future:

 

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^/.well-known/ [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...