So I set up a subdomain as a redirect to another page on my website and on some browsers it's getting hung up as insecure as the subdomain is apparently showing as http for the split second before it starts to load the target page. Being set up as a redirect blanks out the https option.
Is there a way to resolve this short of changing the subdomain to a folder and using an html redirect index page?
Subdomain Redirect HTTPS?
- SG-17
- New to forums
- Posts: 4
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Fri Mar 01, 2024 6:07 am
- Contact:
Re: Subdomain Redirect HTTPS?
If you want to be able to distribute the https:// link for that subdomain and have it redirect properly, you may need to set it up as a Folder type and have a redirect in the .htaccess file. This should allow LE to work properly with it, as long as you carve out the ".well-known" folder.
So the .htaccess would look something like this:
So the .htaccess would look something like this:
Code: Select all
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/.well-known/
RewriteRule ^ https://your.redirect.target [R=302,L]
Re: Subdomain Redirect HTTPS?
Thank you, that worked great!