Forum Moderators: phranque
Could anybody tell me how to collect [unicode links?]
I would like to know how to rewrite url
http://example.com/wiki/%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1
%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0
to something like this
http://example.com/index.php?url=wiki/%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1
%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0
I tried to realize this, but I can only do it without unicode string, I can do something like this:
http://example.com/wiki/string1/string2/string3
to something like this
http://example.com/index.php?url=wiki/string1/string2/string3
RewriteRule ^([-/_\w\s]*)$ /index.php?url=$1 [L]
Have anybody got resolution, have anybody seen how it is done in wiki htaccess or similar pages, how to handle unicode urls?
Thank you
[edited by: jdMorgan at 2:55 am (utc) on June 17, 2005]
[edit reason] Removed specifics, fixed side-scroll. [/edit]
# Delete all after percent sign (This does not work)
RewriteRule ^([^%]+)\% http://www.example.com/$1 [R=301,L]
#
# Delete all after percent sign (This works)
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^%]+)\%
RewriteRule .* http://www.example.com/%1 [R=301,L]
it could be [test.com...]
it could be [test.com...]
it could be [test.com...]
.......................
and i would like to get
$url=%D70
$url=%C99%2
$url=%E12%3/%D70
...............................
One
Jim