1

In https://stackoverflow.com/a/25255559/1118719 we see

AddCharset utf-8 .html .css .php .txt .js

That is marvelous for files named bla.html, bla.css, etc.

But how to match just files named bla?

Sure, one could try e.g.,

AddCharset utf-8 .html .txt ""

but that doesn't work.

Yes, maybe there is no solution for 'bla' and 'bla.'.

1 Answer 1

2

Alas, one must resort to e.g.,

<FilesMatch "^[^.]+$">
ForceType 'text/plain; charset=UTF-8'
</FilesMatch>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.