Kasimir - That helps. I think I understand how to write my htaccess file.
However, I still can't figure out how to do the character translation. Where do I look for the right translation code table? Sorry if I'm being thick about this, but I've looked up Unicode and a half-dozen other tables and I can't figure out what I'm missing. In other words... in what table does %2528 translate to a "(", etc.?
-stuart
Date: Mon, 4 Sep 2006 16:07:58 -0600
From: "Kasimir Gabert" kasimir.g@gmail.com Subject: Re: [Mediawiki-l] Accented URLs not redirecting properly
You need to write an Apache redirect for all odd characters. The problem with this is that you need to have a finite amount of characters that are in use, or you need to list all "odd" characters.
In my wiki I had pages with parenthesis, so I used the following:
RewriteEngine on RewriteRule ^/wiki/(index\.php.*) /w/$1 [R] RewriteRule (.*)%2528(.*)%2529(.*) $1($2)$3 [R]
I hope that this helps, Kasimir Gabert
Okay, sorry for not being clear enough.
%25 translates to "%", and then the 28 follows the new %, so the browser gets %28, which is (. You are just trying to catch what the browser will try to redirect it to, with the incorrect encoding, and rewriting it in the .htaccess or your virtual server settings. Does that make sense?
I hope this helps, Kasimir
On 9/4/06, Stuart Maxwell stumaxis@gmail.com wrote:
Kasimir - That helps. I think I understand how to write my htaccess file.
However, I still can't figure out how to do the character translation. Where do I look for the right translation code table? Sorry if I'm being thick about this, but I've looked up Unicode and a half-dozen other tables and I can't figure out what I'm missing. In other words... in what table does %2528 translate to a "(", etc.?
-stuart
Date: Mon, 4 Sep 2006 16:07:58 -0600
From: "Kasimir Gabert" kasimir.g@gmail.com Subject: Re: [Mediawiki-l] Accented URLs not redirecting properly
You need to write an Apache redirect for all odd characters. The problem with this is that you need to have a finite amount of characters that are in use, or you need to list all "odd" characters.
In my wiki I had pages with parenthesis, so I used the following:
RewriteEngine on RewriteRule ^/wiki/(index\.php.*) /w/$1 [R] RewriteRule (.*)%2528(.*)%2529(.*) $1($2)$3 [R]
I hope that this helps, Kasimir Gabert
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org