Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2020-07-31 08:25:54

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,393
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

You didn’t come across as snarky. On reflection, I think you’ve already solved it, it would be such a rare case, and people would use search if they really wanted 4.2.0


Wondrous Healing Wondrous ways to a healthy old age
Safe Reiki Harmless natural healing.
Gud One Blog

Offline

#22 2020-07-31 09:42:05

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,537
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

Bloke a dit:

The new size attribute. . .

giz wrote #325018:

Fantastika!

Indeed. Nice and needed new tweak.

Offline

#23 2020-08-01 10:45:00

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,393
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

Bloke wrote #325024:
zero wrote #325023:

I’ll dig out offending .htaccess files for you soon.

It’s Litespeed, I do believe. All sites hosted on litespeed servers don’t show .htaccess contents in diagnostics, whereas all on Apache servers do, as far as my tests go. The .htaccess on the litespeeds were various including default Textpattern.


Wondrous Healing Wondrous ways to a healthy old age
Safe Reiki Harmless natural healing.
Gud One Blog

Offline

#24 2020-08-01 10:52:57

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,245

Re: Feedback for: Textpattern CMS 4.8.2 released

zero wrote #325056:

It’s Litespeed, I do believe. All sites hosted on litespeed servers don’t show .htaccess contents in diagnostics, whereas all on Apache servers do, as far as my tests go.

This triggered a hazy memory of a client I had last year, so I went looking around – found this: openlitespeed.org/kb/migrate-apache-rewrite-rules-to-openlitespeed/ (linked from www.litespeedtech.com/support/forum/threads/openlitespeed-wont-read-htaccess-files.17644/ for info).

Edit: I haven’t used Litespeed myself but I recall (distantly) there was some .htaccess fun and games with this Litespeed client, so it might be worth a closer look.

Last edited by gaekwad (2020-08-01 10:59:30)

Offline

#25 2020-08-01 11:32:06

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,393
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

I’ve checked Diagnostics carefully and the only difference I see between apache and litespeed output is the missing .htaccess details, so not really a problem that needs fixing I think.


Wondrous Healing Wondrous ways to a healthy old age
Safe Reiki Harmless natural healing.
Gud One Blog

Offline

#26 2020-08-01 11:49:25

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,834
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

Interesting. Never used Litespeed either.

Before outputting .htaccess, we do a test for ‘is this an Apache environment?’. If not, they’re ignored, which is why you don’t see them. I’m not sure if we can test ‘if Apache OR Litespeed’ and output them in both cases. It would depend on what PHP functions are available for us to query the server environment.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#27 2020-08-01 14:22:21

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,245

Re: Feedback for: Textpattern CMS 4.8.2 released

One simple way to check if .htaccess is actually being used would be to put a bogus line at the beginning (i.e. deliberately break it) and see if the site still loads. I’m assuming fancy URLs are working, so I’m guessing there’s something being processed.

Offline

#28 2020-08-01 14:40:16

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,834
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

I’m not sure based on those links you posted whether Litespeed actually uses .htaccess files that are put there manually, or if only certain hosts require you to add them via the control panel so they can be installed on your behalf.

Either way, our check for displaying them in diagnostics is governed by this line:

$is_apache = stristr(serverSet('SERVER_SOFTWARE'), 'Apache') || is_callable('apache_get_version');

If it fails that test (i.e. the server doesn’t mention the word ‘Apache’ or PHP doesn’t report that we can access Apache-related content) then you don’t get the .htaccess and other Apache-style content reported in Diagnostics.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#29 2020-08-01 15:04:22

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,245

Re: Feedback for: Textpattern CMS 4.8.2 released

Bloke wrote #325061:

I’m not sure based on those links you posted whether Litespeed actually uses .htaccess files that are put there manually, or if only certain hosts require you to add them via the control panel so they can be installed on your behalf.

This was my thinking, too – wasn’t 100% sure whether I’d understood it correctly.

zero – are you using clean URLs successfully?

Offline

#30 2020-08-01 15:25:31

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,393
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

gaekwad wrote #325062:

This was my thinking, too – wasn’t 100% sure whether I’d understood it correctly.

zero – are you using clean URLs successfully?

Yes, never had a problem, been using Litespeed for 3 years at least. When I make changes to .htaccess I get immediate response, so it is being used


Wondrous Healing Wondrous ways to a healthy old age
Safe Reiki Harmless natural healing.
Gud One Blog

Offline

Board footer

Powered by FluxBB