| Author |
|
dualityinc Newbie

Joined: 05 June 2010 Location: United States
Online Status: Offline Posts: 6
|
| Posted: 05 June 2010 at 10:31pm | IP Logged
|
|
|
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 |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10489
|
| Posted: 07 June 2010 at 7:15am | IP Logged
|
|
|
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 |
|
| |
dualityinc Newbie

Joined: 05 June 2010 Location: United States
Online Status: Offline Posts: 6
|
| Posted: 07 June 2010 at 9:03am | IP Logged
|
|
|
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 |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10489
|
| Posted: 07 June 2010 at 9:16am | IP Logged
|
|
|
"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 |
|
| |
dualityinc Newbie

Joined: 05 June 2010 Location: United States
Online Status: Offline Posts: 6
|
| Posted: 07 June 2010 at 9:34am | IP Logged
|
|
|
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 |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10489
|
| Posted: 07 June 2010 at 9:40am | IP Logged
|
|
|
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 |
|
| |
dualityinc Newbie

Joined: 05 June 2010 Location: United States
Online Status: Offline Posts: 6
|
| Posted: 07 June 2010 at 9:45am | IP Logged
|
|
|
Perfect! Thanks Anton. I appreciate your response and knowledge.
|
| Back to Top |
|
| |
dualityinc Newbie

Joined: 05 June 2010 Location: United States
Online Status: Offline Posts: 6
|
| Posted: 08 June 2010 at 3:01pm | IP Logged
|
|
|
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 |
|
| |
dualityinc Newbie

Joined: 05 June 2010 Location: United States
Online Status: Offline Posts: 6
|
| Posted: 08 June 2010 at 3:02pm | IP Logged
|
|
|
And of course "AdministerPropertyManagerMainMenu" is the parameter and could change.
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10489
|
| Posted: 09 June 2010 at 2:40am | IP Logged
|
|
|
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 |
|
| |