Re: [EMAIL PROTECTED] I18N, HTTP 2.0?

2008-10-18 Thread Daniel Aleksandersen
P (and other) standards have not followed this evolution. I doubt, however, that the HTTP---one for the web's core protocol---will be revised just to make room for internationalisation. More needs need to be addressed at the same time to make something happen in t

[EMAIL PROTECTED] mod_negotiation: prefer-type cookie? (as prefer-language)

2008-03-02 Thread Daniel Aleksandersen
Hi, Taken from the example were the Accept-Language (and it qualifiers) HTTP header is overridden by a cookie set in the user’s browser; from http://httpd.apache.org/docs/2.2/content-negotiation.html#better : SetEnvIf Cookie "lang=(.+)" prefer-language=$1 Header append Vary cookie But can this

[EMAIL PROTECTED] mod_negotiation: prefer-type cookie? (as prefer-language)

2008-03-03 Thread Daniel Aleksandersen
On 2008-03-03, Joshua Slive wrote: > On Mon, Mar 3, 2008 at 1:05 AM, Daniel Aleksandersen > > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Taken from the example were the Accept-Language (and it qualifiers) > > HTTP header is overridden by a cookie s

Re: [EMAIL PROTECTED] mod_rewrite, cookies and : in the value

2008-03-04 Thread Daniel Aleksandersen
On 2008-03-04, Ben Spencer wrote: > This is a simple task, except that the value of the cookie actually has > a ":" in it which confuses mod_rewrite and the parameters since the > parameter separator is a ":". You just need to escape the colon as “%3A” (percentage-three-uppercase A). -- Daniel’s

[EMAIL PROTECTED] Costume 406 in PHP with available variants

2008-03-05 Thread Daniel Aleksandersen
Hi, Apache’s default 406 Not Acceptable error page is somewhat…unfriendly to the users. Especially in my case because I am creating a page for elderly people in Norway, and an error showing “advanced computer‐English” is not something I want to serve them. What I want is to get the list of ‘av

[EMAIL PROTECTED] Content negotiation and the Vary header

2008-03-10 Thread Daniel Aleksandersen
been able to figure out from reading—meaning skimming trough—the RFCs. -- Daniel Aleksandersen – http://www.opensource-notebook.com/ - The official User-To-User support forum of the Apache HTTP Server Project. See http

[EMAIL PROTECTED] Readable and L10N URIs with content negotiation and mod_rewrite/aliases

2008-03-11 Thread Daniel Aleksandersen
;/fishingrods.html.en and fishingrods.html.nb. -- Daniel Aleksandersen – http://www.opensource-notebook.com/ - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for

[EMAIL PROTECTED] Readable and L10N URIs with content negotiation and mod_rewrite/aliases

2008-03-11 Thread Daniel Aleksandersen
On 2008-03-11, Dragon wrote: > Daniel Aleksandersen wrote: > >Hi, > > > >I need some help to think clearer. > > > >To copy the example used on “Making readable URIs” at W3C: > >“A Norwegian without knowledge of basic English would like to be > >

[EMAIL PROTECTED] Readable and L10N URIs with content negotiation and mod_rewrite/aliases

2008-03-11 Thread Daniel Aleksandersen
On 2008-03-11, William A. Rowe, Jr. wrote: > Daniel Aleksandersen wrote: > > On 2008-03-11, Dragon wrote: > >> Daniel Aleksandersen wrote: > >>> Hi, > >>> > >>> I need some help to think clearer. > >>> > >>> To co

[EMAIL PROTECTED] Content-Location header instead of 301 redirect for www.

2008-03-12 Thread Daniel Aleksandersen
Hi list, (UTF‐8 encoded) Currently I use the following to trigger a 301 redirect when users request my domain without the www. prefix. RewriteCond %{HTTP_HOST} !^www.example.tld$ [NC] RewriteRule ^(.*)$ http://www.example.tld/$1 [R=301,L] After reading up on the HTTP/1.1 specification lately

[EMAIL PROTECTED] Why is Accept-Encoding uppercase?

2008-03-12 Thread Daniel Aleksandersen
Hi, I am wondering if there is any reason why turing on the delate output filter would make the “Accept-Endcoding” come out as uppercase? I have used mod_negotiate, and mod_deflate. I see no reason why using the latter would make mod_negotiate return one value with uppercase letters. Vary: nego

[EMAIL PROTECTED] Content-Location header instead of 301 redirect for www.

2008-03-13 Thread Daniel Aleksandersen
On 2008-03-12, Daniel Aleksandersen wrote: > Hi list, (UTF‐8 encoded) > > Currently I use the following to trigger a 301 redirect when users > request my domain without the www. prefix. > RewriteCond %{HTTP_HOST} !^www.example.tld$ [NC] > RewriteRule ^(.*)$ http://www.examp

[EMAIL PROTECTED] Header unset Server

2008-03-13 Thread Daniel Aleksandersen
setting it—commented out below—does work as it should too. Header set Test "Working" # Header unset Test I do all my header modifcations at the bottom of the .htaccess file. So order should not have anything to say. --

[EMAIL PROTECTED] Header unset Server

2008-03-13 Thread Daniel Aleksandersen
On 2008-03-13, Joshua Slive wrote: > On Thu, Mar 13, 2008 at 11:43 AM, Daniel Aleksandersen wrote: > > The below option spesified in the document_root/.htaccess have no > > effect. Should it work? It may be my shared hosting enviroment that > > is messing up this one. I see t

[EMAIL PROTECTED] Why is Accept-Encoding uppercase?

2008-03-13 Thread Daniel Aleksandersen
On 2008-03-13, Joshua Slive wrote: > On Wed, Mar 12, 2008 at 3:47 PM, Daniel Aleksandersen wrote: > > I am wondering if there is any reason why turing on the delate > > output filter would make the "Accept-Endcoding" come out as > > uppercase? > > > >

[EMAIL PROTECTED] Header unset Server

2008-03-13 Thread Daniel Aleksandersen
On 2008-03-13, Joshua Slive wrote: > On Thu, Mar 13, 2008 at 12:30 PM, Daniel Aleksandersen wrote: > > I want only to mofify one thing with the "Content-Location" header. > > I want it to include the absolut URI instead of only the relative > > URI. Can this be do

[EMAIL PROTECTED] Why is Accept-Encoding uppercase?

2008-03-13 Thread Daniel Aleksandersen
On 2008-03-13, Joshua Slive wrote: > On Thu, Mar 13, 2008 at 3:02 PM, Daniel Aleksandersen wrote: > > No, I was only wondering if there was a reason for the > > inconsistency. > > I'm pretty-sure there is no reason other than that the person coding > mod_deflate did

[EMAIL PROTECTED] mod_negotiate and source qualities by type, charset, language, and encoding

2008-03-27 Thread Daniel Aleksandersen
, “TypePriority application/xhtml+xml text/html text/plain”. I know I can achieve this on a per URI basis using type maps. But I want a faster way to do it on all files. For example, I want to prioritise serving document.utf-8.xhtml.gz over document.iso-8859-15.txt.zip. -- Daniel Aleksandersen

[EMAIL PROTECTED] mod_negotiate and source qualities by type, charset, language, and encoding

2008-03-27 Thread Daniel Aleksandersen
On 2008-03-27, Joshua Slive wrote: > On Thu, Mar 27, 2008 at 11:14 AM, Daniel Aleksandersen wrote: > > Hi, > > > > I know I can set the source quality (qs) for language negotiation > > using the "LanguagePriority" option. For example, "LanguagePriority &g

[EMAIL PROTECTED] mod_negotiate and source qualities by type, charset, language, and encoding

2008-03-30 Thread Daniel Aleksandersen
On 2008-03-27, Joshua Slive wrote: > On Thu, Mar 27, 2008 at 12:11 PM, Daniel Aleksandersen > > <[EMAIL PROTECTED]> wrote: > > On 2008-03-27, Joshua Slive wrote: > > > As far as I know, there is no way to set source quality in apache > > > other than throug

[EMAIL PROTECTED] Content negotiation and IE7

2008-04-04 Thread Daniel Aleksandersen
trives the plain text version. I have been told Safari does the same. I have a variant type map for the URI with source quality identifiers (as above). So really it should use XHTML or HTML before falling back to plain text. The "DefaultType text/html" is specified on the serv

[EMAIL PROTECTED] Comma and semicolon parameters for content negotiation

2008-04-08 Thread Daniel Aleksandersen
details on a permanent fix for this: https://issues.apache.org/bugzilla/show_bug.cgi?id=44779 Anyhow, I want to use this today. So how can I start using comma separated options in URIs today when mod_negotiate only supports dot separated options/extensions? Some clever rewrite? -- Daniel

Re: [EMAIL PROTECTED] Comma and semicolon parameters for content negotiation

2008-04-09 Thread Daniel Aleksandersen
Tue, 8 Apr 2008 14:18:45 -0400, Joshua Slive: > On Tue, Apr 8, 2008 at 10:05 AM, Daniel Aleksandersen > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Inspired by > > http://h3h.net/2007/01/designing-urls-for-multilingual-web-sites/#method-07 > > and >

Re: [EMAIL PROTECTED] Content negotiation and IE7

2008-04-09 Thread Daniel Aleksandersen
Fri, 04 Apr 2008 10:48:49 +0200 (CEST), Daniel Aleksandersen: > Hi list, > > IE 7 and 8b, and newer versions of Safari sends HTTP "Accept: */*" headers. > How to deal with these browsers when working with content negotiation? I have > three different types available: &g

[EMAIL PROTECTED] Spesifyinng a fallback for content negotiation

2008-04-09 Thread Daniel Aleksandersen
Hi list, Is it possible to spesify a default fallback when content negotiation fail? Regarding language, file format, charset, and compression. -- Daniel Aleksandersen - The official User-To-User support forum of the Apache

[EMAIL PROTECTED] Why does type-maps rely on MultiViews?

2008-04-09 Thread Daniel Aleksandersen
work. I have found a "sort of work-around" were I use "Option +MultiViews" with "MultiViewsMatch Handlers" only. This is the only thing that allows me to use type-maps that are not overridden by multiv

Re: [EMAIL PROTECTED] Why does type-maps rely on MultiViews?

2008-04-14 Thread Daniel Aleksandersen
On Sun,13 Apr 2008 23:00:19 -0400, Joshua Slive wrote: > On Wed, Apr 9, 2008 at 10:36 PM, Daniel Aleksandersen > <[EMAIL PROTECTED]> wrote: > > Hi list, > > > > Why does type-maps rely on multiviews to be enabled? I can sort of > > understand why it is

[EMAIL PROTECTED] Why does type-maps rely on MultiViews?

2008-04-16 Thread Daniel Aleksandersen
On Mon, 14 Apr 2008 07:50:47, Joshua Slive wrote: > On Mon, Apr 14, 2008 at 5:05 AM, Daniel Aleksandersen wrote: > > Another question, can I partaly negotiate between various type-maps? Say I > > have one type-map called [../resource] saying: > > URI: resource,en >

[EMAIL PROTECTED] Localized folder names from .directory files

2008-04-24 Thread Daniel Aleksandersen
heive something similar on Apache? I am thinking about easy URI localization. -- Daniel Aleksandersen - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html>

[EMAIL PROTECTED] SetEnvIf help (concepts OK, but lacks implementation)

2008-04-26 Thread Daniel Aleksandersen
) thus creating a absolute URI from a relative URI SetEnvIf wwwhost yes Header always unset Content-Location # Unsets Content-Location header if variable wwwhost is yes (set above) -- Daniel Aleksandersen - The official User-To-Us

[EMAIL PROTECTED] SetEnvIf help (concepts OK, but lacks implementation)

2008-04-27 Thread Daniel Aleksandersen
2008-04-27 18:58 skreiv Joshua Slive: > On Sat, Apr 26, 2008 at 5:33 PM, Daniel Aleksandersen wrote: > > SetEnvIfNoCase Host !^www.domain.tld$ wwwhost=no > > # Sets enviromental variable wwwhost to no if host is not www.domain.tld > > SetEnvIfNoCase Host ^www.aleksande

[EMAIL PROTECTED] HTTP “Location” header responds question

2008-04-27 Thread Daniel Aleksandersen
Hi list, Really a question about the HTTP standard, but I had nowhere else to ask it. May I include the HTTP “Location” header when not redirecting using a 3## redirect status? I am considering including the Location header with the preferred absolute URI on a 200 OK status. http://www.w3.org/

Fwd: [EMAIL PROTECTED] SetEnvIf help (concepts OK, but lacks implementation)

2008-04-27 Thread Daniel Aleksandersen
2008-04-28 01:12 skreiv du: > On Sun, Apr 27, 2008 at 6:45 PM, Daniel Aleksandersen wrote: > > Could you help me with the regex editing too, please? Were > > "magical-regex" takes the current header and inserts > > "http://www.domain.tld/"; as a pr

[EMAIL PROTECTED] HTTP “Location” header responds question

2008-04-28 Thread Daniel Aleksandersen
2008-04-28 17:48 skreiv Joshua Slive: > On Sun, Apr 27, 2008 at 9:22 PM, Daniel Aleksandersen wrote: > > Really a question about the HTTP standard, but I had nowhere else to ask > > it. > > > > May I include the HTTP "Location" header when not redirecting

[EMAIL PROTECTED] Accessing the request URI header

2008-05-02 Thread Daniel Aleksandersen
Hi list, Header always set Content-Location http://www.domain.tld/{REQUEST_URI} Looks great, right? Well, it does not work great. How do I get the request URI into the above wild-guess-at-a-syntax? -- Daniel Aleksandersen <[EMAIL PROTEC

[EMAIL PROTECTED] Accessing the request URI header

2008-05-02 Thread Daniel Aleksandersen
Hi list, Header always set Content-Location http://www.domain.tld/{REQUEST_URI} Looks great, right? Well, it does not work great. How do I get the request URI into the above wild-guess-at-a-syntax? -- Daniel - The official Use

[EMAIL PROTECTED] Accessing the request URI header

2008-05-02 Thread Daniel Aleksandersen
2008-05-03 02:16 skreiv Joshua Slive: > On Fri, May 2, 2008 at 7:45 PM, Daniel Aleksandersen wrote: > > Hi list, > > > > Header always set Content-Location http://www.domain.tld/{REQUEST_URI} > > > > Looks great, right? Well, it does not work great. How do I

[EMAIL PROTECTED] Accessing the request URI header

2008-05-02 Thread Daniel Aleksandersen
2008-05-03 03:03 skreiv Eric Covener: > On Fri, May 2, 2008 at 8:41 PM, Daniel Aleksandersen wrote: > > 2008-05-03 02:16 skreiv Joshua Slive: > > > On Fri, May 2, 2008 at 7:45 PM, Daniel Aleksandersen wrote: > > > > Header always set Content-Location > > &g

[EMAIL PROTECTED] Accessing the request URI header

2008-05-02 Thread Daniel Aleksandersen
2008-05-03 04:01 skreiv Daniel Aleksandersen: > 2008-05-03 03:03 skreiv Eric Covener: > > On Fri, May 2, 2008 at 8:41 PM, Daniel Aleksandersen wrote: > > > 2008-05-03 02:16 skreiv Joshua Slive: > > > > On Fri, May 2, 2008 at 7:45 PM, Daniel Aleksandersen wrote: