Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1B373823 for ; Mon, 2 May 2011 18:26:49 +0000 (UTC) Received: (qmail 54878 invoked by uid 500); 2 May 2011 18:26:45 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 54839 invoked by uid 500); 2 May 2011 18:26:45 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 54801 invoked by uid 99); 2 May 2011 18:26:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2011 18:26:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gmillikan@t1shopper.com designates 208.64.252.230 as permitted sender) Received: from [208.64.252.230] (HELO www.t1shopper.com) (208.64.252.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2011 18:26:39 +0000 Received: from rabbithill (static-71-177-216-6.lsanca.fios.verizon.net [71.177.216.6]) (authenticated bits=0) by www.t1shopper.com (8.13.8/8.13.8) with ESMTP id p42IQHXW004939 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 2 May 2011 18:26:18 GMT From: "Geoff Millikan" To: References: <2E3FB5BC9F494F6C80F8D9972193DA52@rabbithill> <23914E79DB644B9CACD60CB77ACBF6CE@rabbithill> In-Reply-To: <23914E79DB644B9CACD60CB77ACBF6CE@rabbithill> Date: Mon, 2 May 2011 11:26:18 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acv6Egy56pC498DfRjizVuzxgHZLXwAGeLwAA7AocXA= X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17574 Subject: [users@httpd] XHTML > Set Content-Type as "application/xhtml+xml" for browsers that support it otherwise degrade to "text/html" Dear List, For the browsers that support XHTML we'll set the Content-Type as "application/xhtml+xml" otherwise we'll send the same XHTML document as Content-Type "text/html." Is the best way to do this like: AddDefaultCharset text/html SetEnvIfNoCase Accept "xhtml" ua_supports_xhtml=1 Header set Content-Type "application/xhtml+xml" env=ua_supports_xhtml Thanks, http://www.t1shopper.com/ PS. We'd consider using mod_negotiation to do this but we'd prefer not to make a HTML and XHTML of the same page. We're just going to make one XHTML document and send it to everyone. The browsers that don't support XHTML will just have to do their best. PPS. The recommended Content-Type for XHTML documents (which despite mixed support, is W3C's recommended language for mobile browsers: http://www.w3.org/TR/mobile-bp/#ddc ) is "application/xhtml+xml" but it's permitted to be "text/html." http://www.w3.org/TR/2009/NOTE-xhtml-media-types-20090116/#text-html --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org