Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

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

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: South-Western Japan
Registered: 2004-02-27
Posts: 3,671
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
phiw13 on Codeberg

Offline

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

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

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,398
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: South-Western Japan
Registered: 2004-02-27
Posts: 3,671
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
phiw13 on Codeberg

Offline

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

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

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,398
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