Forum Moderators: open
I ran the automatic install which installs the filter globally, then I went to a test site and placed the httpd.ini file in the root of the site.
I have the following httpd.ini file:
[ISAPI_Rewrite]
RewriteRule /statepage/(.*)\.asp /statepage.asp\?state=$1 [I]
The way I understand it http*://www.mysite.com/statepage/State/NY.asp will be served by http*://www.mysite.com/statepage.asp?state=NY with that rule - well, nothing happens.
According to isapi_rewrite site, a httpd.parse.error file should be written if an error occurs - no file is written.
I went to IIS Manager > Web Sites> Mysite > Isapi Filters, and added the filter isapi_rewrite
Still the filter does not work.
Can anyone point me in the right direction - thanks.
Thanks a lot for your reply :)
did you use the EnableConfig [SiteID¦"Site name"] directive in the global httpd.ini file?
No, I did not
The global httpd.ini file looks like:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini¦\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
How do I know the site ID?
Should the site name be sitename.com?
Thanks
Yoroslav has requested (via email) that I give him access to the server to try to fix it, but I am a bit hesitant to do that.
I think the problem has to do with the Ensim Web Appliance which is installed in the server, but I am not sure.
I added EnableConfig [MySiteID¦"My Site name"] to the global ini file, but it did not work either.
I have the following httpd.ini file:
[ISAPI_Rewrite]
RewriteRule /statepage/(.*)\.asp /statepage.asp\?state=$1 [I]
http*://www.mysite.com/statepage/State/NY.asp
i do not know the product in detail, but
in this case would $1 not be "State/NY"?
if it follows normal regexp syntax, then the regexp
part of the rule should be:
/.*\/statepage\/State\/(.*)\.asp/
to extract NY as the string $1
1) As I understand it, the filter should not be installed both Globally and Locally. Should be either one or the other. So if it appears in the ISAPI Filters tab of Master Properties for the machine, then it should not appear in the same tab at the Website level.
2) Did you see the section entitled, "Special notes for the IIS6" in the ISAPI_Rewrite documentation? This concerns nested application pools. Not sure how Ensim Web Appliance is set up but might be something to check.
2) I read that section, unfortunately I am not that familiar with the server inner workings to know exactly what they are talking about.
I also think the culprit of this problem is the Ensim Web Appliance.
I am afraid to make changes, because it might bring the whole server down.
One of the people at isapi_rewrite will check my server - hopefully he'll figure it out.
Thanks