Space Pirate
Join Date: May 2004
Location: Atlanta
|
I have a subdomain that works fine with the cert as long a you hit it from HTTPS
But when I try it from HTTP she no worky. I have read the recommendations from the host (MediaTemple) but it doesn't seem to work. Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain.domain.com [NC]
RewriteRule ^(.*)$ http://subdomain.domain.com/$1 [R=301,L] Your suggestions would be appreciated!!! ... |
quote |
Space Pirate
Join Date: May 2004
Location: Atlanta
|
When I check it with https://htaccess.madewithlove.be/ it all seems to check out, but it doesn't force the https??!!
... |
quote |
‽
|
My Apache is a little rusty, but don't you want
RewriteRule ^(.*)$ https://subdomain.domain.com/$1 [R=301,L] The RewriteCond (condition) is what the URL should match; the RewriteRule is what to do with it. So it should look like the result. |
quote |
Space Pirate
Join Date: May 2004
Location: Atlanta
|
An Idiot : A Poem
y'all already knew i was an idiot, but i was reminded today, when the tech from the host did say: mister, I had to rename the file to have a period in front of the name because that is how an HT access file works also, this code is better: Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;" My thanks to all who came here to laugh at me. ... |
quote |
‽
|
|
quote |
Space Pirate
Join Date: May 2004
Location: Atlanta
|
I have had insomnia tonight and as sunrise approaches and I'm getting ready to catch some sleep it occurred to me that the reason I didn't catch the mistake is because I'm getting older and less observant, and my eyesight isn't what it used to be.
Also: I really need to clean my laptop screen because I assume that some of the gunk are text characters! ... |
quote |
‽
|
|
quote |
Posting Rules | Navigation |
|
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Safari redirecting | Rehnquist | Genius Bar | 7 | 2007-07-11 16:00 |
Https | drewprops | Programmer's Nook | 5 | 2006-09-25 19:49 |
Where did my MB http:// access go? | turtle | Genius Bar | 3 | 2006-08-08 15:25 |
Redirecting Motivation. | Wickers | AppleOutsider | 23 | 2006-07-02 01:46 |