Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Need help with UTF-8 Encoded URLs Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dualityinc
Newbie
Newbie


Joined: 05 June 2010
Location: United States
Online Status: Offline
Posts: 6
Posted: 05 June 2010 at 10:31pm | IP Logged Quote dualityinc

My company has a piece of customer software that runs off of Filemaker pro. we recently had a Help module installed that when clicked, brings up a help menu in an internet browser. Some areas of the software bring you to specific areas of this help module using the following type of URL - HTTP://MyAddress.com/faq.html#Q1

Once you click on that link, the browser opens at in the address bar, the URL converts to UTF-8 and fails to open the page (this happens on Apple Computers in our office only). The URL looks like the following: HTTP://MyAddress.com/faq.html%23Q1

How do I use ISAPI_Rewrite to rewrite the URL so that it opens the requested URL correctly? Thank you.

Back to Top View dualityinc's Profile Search for other posts by dualityinc Visit dualityinc's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 07 June 2010 at 7:15am | IP Logged Quote Anton

That is actually quite strange as the browser does not send the info after # to the server.
Nevertheless, if it suits you, we can write you a redirect rule to direct HTTP://MyAddress.com/faq.html%23Q1 to HTTP://MyAddress.com/faq.html#Q1.
If that's ok, please confirm you are using ISAPI_Rewrite v2 so I can give you the correct syntax.

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


Joined: 05 June 2010
Location: United States
Online Status: Offline
Posts: 6
Posted: 07 June 2010 at 9:03am | IP Logged Quote dualityinc

1) Yes, using ISAPI Rewrite 2

2) I'm a newbie at this. I have IIS configured but how do I integrate ISAPI rewrite 2 with IIS 6. What are the steps?

3) The reason I need ISAPIE Rewrite is because of the following. See link below.

http://help.filemaker.com/app/answers/detail/a_id/5555

The problem only occurs on Macs on the network I am managing. So, this rewrite will hopefully resolve the issue in displaying this URL that is generated from FileMaker Pro.

 

Back to Top View dualityinc's Profile Search for other posts by dualityinc Visit dualityinc's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 07 June 2010 at 9:16am | IP Logged Quote Anton

"how do I integrate ISAPI rewrite 2 with IIS 6"
- if you have ISAPI_Rewrite installed, you just need to put the proper rules into the config (httpd.ini) under the root of your site:

[ISAPI_Rewrite]
RewriteRule /faq\.html\%23(.*) http\://MyAddress.com/faq\.html#$1 [I,RP]

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


Joined: 05 June 2010
Location: United States
Online Status: Offline
Posts: 6
Posted: 07 June 2010 at 9:34am | IP Logged Quote dualityinc

Thanks Anton. Now, for the real world situation. Can you do the rewrite for the following URL. I just don't want to get confused with the prior example.

I need http://10.1.1.2/webhelp/PropertyManager_CSH.htm%231000

Rewritten to:

http://10.1.1.2/webhelp/PropertyManager_CSH.htm#1000 where 1000 is the variable. It could be #1001, #1002, etc.

Back to Top View dualityinc's Profile Search for other posts by dualityinc Visit dualityinc's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 07 June 2010 at 9:40am | IP Logged Quote Anton

Please try it like this:

[ISAPI_Rewrite]
RewriteRule /webhelp/PropertyManager_CSH\.htm\%23(\d+) http://10.1.1.2/webhelp/PropertyManager_CSH.htm#$1 [I,RP]

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


Joined: 05 June 2010
Location: United States
Online Status: Offline
Posts: 6
Posted: 07 June 2010 at 9:45am | IP Logged Quote dualityinc

Perfect! Thanks Anton. I appreciate your response and knowledge.
Back to Top View dualityinc's Profile Search for other posts by dualityinc Visit dualityinc's Homepage
 
dualityinc
Newbie
Newbie


Joined: 05 June 2010
Location: United States
Online Status: Offline
Posts: 6
Posted: 08 June 2010 at 3:01pm | IP Logged Quote dualityinc

Anton - I need help again

Instead of a number parameter, we are going to use a text parameter like the URL below. How do we rewrite this URL?

http://10.1.1.2/webhelp/PropertyManager_CSH.htm%23AdministerPropertyManagerMainMenu

to

http://10.1.1.2/webhelp/PropertyManager_CSH.htm#AdministerPropertyManagerMainMenu

Thanks,

 

Back to Top View dualityinc's Profile Search for other posts by dualityinc Visit dualityinc's Homepage
 
dualityinc
Newbie
Newbie


Joined: 05 June 2010
Location: United States
Online Status: Offline
Posts: 6
Posted: 08 June 2010 at 3:02pm | IP Logged Quote dualityinc

And of course "AdministerPropertyManagerMainMenu" is the parameter and could change.
Back to Top View dualityinc's Profile Search for other posts by dualityinc Visit dualityinc's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 09 June 2010 at 2:40am | IP Logged Quote Anton

Then the rule will be:

[ISAPI_Rewrite]
RewriteRule /webhelp/PropertyManager_CSH\.htm\%23(.+) http://10.1.1.2/webhelp/PropertyManager_CSH.htm#$1 [I,RP]

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

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