Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Upgrade causes Firefox to blink non-css before final render
skewray wrote #305808:
I’ve just got “skewray.com” in the site URL. I didn’t add anything to config.php that is relevant.
I was assuming that if someone used https to enter the site, that textpattern would be smart enough to serve https for the sub-content. Am I completely wrong on this? I got an SSL cert because why not, but I get the feeling that either I use it all the time, or not at all.
I’d suggest you read Site links in SSL
Using define(‘PROTOCOL’,‘https://’); is rather obscure, something that I was unaware of, but it was discussed back in 2007 (and again in 2015) so it actually isn’t a new feature.
I went ahead and included it when I was setting up the latest incarnation of CMS Styles.
Offline
Re: Upgrade causes Firefox to blink non-css before final render
michaelkpate wrote #305818:
I’d suggest you read Site links in SSL
That is handy, compared to figuring it out with htaccess. I would probably prefer in the end just dropping the SSL certitificate, since my site has nothing that would require encryption.
Offline
Re: Upgrade causes Firefox to blink non-css before final render
define(‘PROTOCOL’,‘https://’);
Is that really necessary? The couple of sites (different hosts, different behind-the-scenes server config) I have running under https://
do not need it. All TXP-tags that output the full URL do the correct thing, affect. I don’t think it would hurt to use it, though.
And fwiw, I don’t think that would fix the skewray’s issue; according to the source code, the URL for the stylesheet already uses https://
, as I noted above.
skewray wrote #305819:
… since my site has nothing that would require encryption.
In the light of all the recent privacy issues in the US, one (small) benefit is that it hides where the visitors really is going. ISP’s will see your domain, but not the full url (domain.tld/section/some-article). Ditto when using hotel WIFI / coffee shop WIFI / …
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: Upgrade causes Firefox to blink non-css before final render
Found the issue, which was something I overlooked in my .htaccess file. Sigh.
Last edited by skewray (2017-06-11 21:30:38)
Offline
Re: Upgrade causes Firefox to blink non-css before final render
skewray wrote #305916:
Found the issue, which was something I overlooked in my .htaccess file. Sigh.
Out of curiosity, and for the benefit of everybody’s general knowledge, care to tell us the details?
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: Upgrade causes Firefox to blink non-css before final render
Sure. I had the standard snippet that can be found anywhere on the web for re-mapping www:
RewriteCond %{HTTP_HOST} ^skewray.com$ [NC}
RewriteRule ^(.*)$ http://www.skewray.com/$1 [L,R=301]
I was pretty certain that I had done an grep for ‘http’, but I guess not. I have no idea how to write that snippet to be http/https agnostic, so I just made it https.
Last edited by skewray (2017-06-12 13:48:02)
Offline
Re: Upgrade causes Firefox to blink non-css before final render
I use this generic one
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Upgrade causes Firefox to blink non-css before final render
skewray wrote #305918:
I was pretty certain that I had done an grep for ‘http’, but I guess not. I have no idea how to write that snippet to be http/https agnostic, so I just make it https.
Thanks for the feedback. Yeah, I suspected something along those lines.
so I just make it https
Unless you have a large site with content going back many years (internal links or image references that are hardcoded with http://
), I wouldn’t worry and send all over https://
.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: Upgrade causes Firefox to blink non-css before final render
colak wrote #305919:
I use this generic one
RewriteCond %{HTTP_HOST} !^$...
Thanks for the improved version. When it comes to the .htaccess file, I am no better than a well-trained monkey.
Offline
Re: Upgrade causes Firefox to blink non-css before final render
skewray wrote #305932:
Thanks for the improved version. When it comes to the .htaccess file, I am no better than a well-trained monkey.
I’m no different. I just like checking for solutions in the net.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline