| Author |
|
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 09 February 2011 at 8:25am | IP Logged
|
|
|
Hi,
I have a rule that goes like that:
RewriteRule ^/prod/P([0-9]+)\.html$ /Prod.aspx?ID=$1 [L]
This rule work perfectly, but if I change the word prod to
some other word in the Hebrew language then the rule doesnt
apply...
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 09 February 2011 at 8:43am | IP Logged
|
|
|
You mean you are typing some Hebrew characters in the rule?
Is it ISAPI_Rewrite 2 you are using?
And how does the testing request look?
__________________ Regards,
Anton
|
| Back to Top |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 09 February 2011 at 9:51am | IP Logged
|
|
|
yes, this is ISAPI_Rewrite 2.
here is the rule (if you can see the heb chars)
^/בלהבלה/P([0-9]+)\.html$ /Prod.aspx?ID=$1 [L]
the url i type:
www.example.com/בלהבלה/P1.html
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 10 February 2011 at 2:37am | IP Logged
|
|
|
Ok, look, you can't write Hebrew characters in RewriteRule statement.
You can try writing them as UTF-8 encoded ones.
Or, just switch to ISAPI_Rewrite 3, which supports Unicode.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 10 February 2011 at 10:15am | IP Logged
|
|
|
And how can I try the utf-8 thing?
for instance the hex for first letter is d790, so I tried
this:
^/\xd790/P([0-9]+)\.html$ /Prod.aspx?ID=$1 [L]
Is that right? This is how should I've been done that?
Of course I saved the file as utf-8.
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 11 February 2011 at 2:42am | IP Logged
|
|
|
Hebrew characters must be encoded as follows (as 2 %xx pairs):
RewriteRule ^/\%D7\%91\%D7\%9C\%D7\%94\%D7\%91\%D7\%9C\%D7\%94/P([0-9]+)\.html$ /Prod.aspx?ID=$1 [L]
The above sequence encodes your בלהבלה string.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 11 February 2011 at 6:58am | IP Logged
|
|
|
it works!
Thanks a lot!
Now that its working, how is it performance wise? Will I'll
the redirect be slower / faster / the same when theres a
lot of traffic..?
|
| Back to Top |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 11 February 2011 at 8:57am | IP Logged
|
|
|
SweeT EviL wrote:
it works!
Thanks a lot!
Now that its working, how is it performance wise? Will
I'll
the redirect be slower / faster / the same when theres a
lot of traffic..? |
|
|
+
what is @@ta?
(i couldnt edit the previous massage so i post one more)
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 11 February 2011 at 10:30am | IP Logged
|
|
|
Performance will be the same.
"what is @@ta?"
- not sure what you mean... Could you please clarify?..
__________________ Regards,
Anton
|
| Back to Top |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 11 February 2011 at 10:49am | IP Logged
|
|
|
About the @@ta, I saw it on several location
F_URLs.htm" rel="nofollow">here.
For example you can sees it on "Rewriting Numeric URLs with
Two Parameters", or just search for @@ta inside this link.
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10520
|
| Posted: 11 February 2011 at 11:42am | IP Logged
|
|
|
Have no idea what this sequence "@@ta" does.
I guess it was used in very old builds of ISAPI_Rewrite 2.
Please don't use it and omit it if you come across it in some examples.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
SweeT EviL Newbie

Joined: 09 February 2011
Online Status: Offline Posts: 20
|
| Posted: 11 February 2011 at 11:48am | IP Logged
|
|
|
Well, Thanks for all the good help!
|
| Back to Top |
|
| |