htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Using defaultcharset and defaultlanguage to eliminate meta
PostPosted: 27 Sep 2006 07:33 
Offline
User avatar

Joined: 25 Sep 2006 04:48
Posts: 242
Instead of using meta lines to give your pages a charset like utf-8 or iso-9660, use this:
Code:
AddDefaultCharset utf-8


Instead of using meta to specify the language, use this:
Code:
DefaultLanguage en-us


To make sure the headers only get sent with html and php files, (instead of sending a charset and language with every file served) do this:
Code:
<FilesMatch "\.(html|htm|php)$">
AddDefaultCharset utf-8
DefaultLanguage en-us
</FilesMatch>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB