Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Common Questions
 Helicon Tech : Common Questions
Subject Topic: Anyone point me in the right direction? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
nish142
Newbie
Newbie


Joined: 23 February 2010
Online Status: Offline
Posts: 3
Posted: 23 February 2010 at 9:24pm | IP Logged Quote nish142

I just installed isapi_rewrite on Windows Server 2003, but I cannot get the filter to work.

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

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.



__________________
organic search marketing
Utah Internet Marketing Services
Back to Top View nish142's Profile Search for other posts by nish142
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10488
Posted: 24 February 2010 at 2:36am | IP Logged Quote Anton

"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" - you are slightly wrong...

Here's what the rule should look like:

[ISAPI_Rewrite]
RewriteRule /statepage/State/([^./]+)\.asp /statepage.asp\?state=$1 [I,L]

And please have the ISAPI_Rewrite filter on the global level only. Please remove it from the site level.

__________________
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