Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2017-05-31 14:14:04

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

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

#14 2017-05-31 14:30:38

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 143
Website

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

#15 2017-06-01 05:11:02

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,081
Website

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

#16 2017-06-11 21:19:46

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 143
Website

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

#17 2017-06-11 23:13:34

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,081
Website

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

#18 2017-06-12 00:07:20

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 143
Website

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

#19 2017-06-12 06:25:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

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

#20 2017-06-12 07:11:37

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,081
Website

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

#21 2017-06-12 13:50:00

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 143
Website

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

#22 2017-06-12 14:46:17

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

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

Board footer

Powered by FluxBB