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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: rule doesnt apply Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 09 February 2011 at 8:25am | IP Logged Quote SweeT EviL

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 View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 09 February 2011 at 8:43am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 09 February 2011 at 9:51am | IP Logged Quote SweeT EviL

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 View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 10 February 2011 at 2:37am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 10 February 2011 at 10:15am | IP Logged Quote SweeT EviL

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 View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 11 February 2011 at 2:42am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 11 February 2011 at 6:58am | IP Logged Quote SweeT EviL

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 View SweeT EviL's Profile Search for other posts by SweeT EviL
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 11 February 2011 at 8:57am | IP Logged Quote SweeT EviL

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 View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 11 February 2011 at 10:30am | IP Logged Quote Anton

Performance will be the same.

"what is @@ta?"
- not sure what you mean... Could you please clarify?..

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 11 February 2011 at 10:49am | IP Logged Quote SweeT EviL

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 View SweeT EviL's Profile Search for other posts by SweeT EviL
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 11 February 2011 at 11:42am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
SweeT EviL
Newbie
Newbie


Joined: 09 February 2011
Online Status: Offline
Posts: 20
Posted: 11 February 2011 at 11:48am | IP Logged Quote SweeT EviL

Well, Thanks for all the good help!
Back to Top View SweeT EviL's Profile Search for other posts by SweeT EviL
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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