This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: rule doesnt apply
Author
Message |
SweeT EviL
Newbie


Joined: 09 February 2011
Posts: 20
Posted: 09 February 2011 at 8:25am

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
Posts: 10519
Posted: 09 February 2011 at 8:43am

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
Posts: 20
Posted: 09 February 2011 at 9:51am

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
Posts: 10519
Posted: 10 February 2011 at 2:37am

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
Posts: 20
Posted: 10 February 2011 at 10:15am

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
Posts: 10519
Posted: 11 February 2011 at 2:42am

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
Posts: 20
Posted: 11 February 2011 at 6:58am

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
Posts: 20
Posted: 11 February 2011 at 8:57am

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
Posts: 10519
Posted: 11 February 2011 at 10:30am

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
Posts: 20
Posted: 11 February 2011 at 10:49am

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
Posts: 10519
Posted: 11 February 2011 at 11:42am

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
Posts: 20
Posted: 11 February 2011 at 11:48am

Well, Thanks for all the good help!
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum