Ionic Isapi Rewrite error on IIS6, Windows 2003 Server

Posted by EsiX on Server Fault See other posts from Server Fault or by EsiX
Published on 2009-06-25T07:13:43Z Indexed on 2010/04/05 22:13 UTC
Read the original article Hit count: 661

Filed under:
|

First of all my setup is a VPS running Windows 2003 Server with multiple domains on it IIS 6, Plesk

IsapiRewrite4.ini

RewriteLogLevel 3

RewriteCond %{HTTP_HOST} ^mydomain.com$
RewriteRule ^/(.*)$        http://www.mydomain.com/$1  [R]

This is one of their basic examples. Ionic is installed and setup proper because if I use another rule (a simpler one ... like the one following) it works instant

# IsapiRewrite4.ini
#

RewriteLogLevel 3

#
# This ini file illustrates the use of a redirect rule. 
# Any incoming URL that starts with an uppercase W
# will be redirected to the specified server.

RewriteRule ^/(W.*)$  http://server.dyndns.org:7070/$1   [R]

This one works in the TestDriver tool and none of them gives any error or warnings in TestParse tool, but it doesn't do a thing on the webserver... The fact that one rule works means that the isapi module works. I am using the last version.

RedirectRule http://mydomain.com/someplace/somefile.html http://www.mydomain.com/howto/someplace/anotherfile.html  [I,L]

Both examples were taken from http://iirf.codeplex.com/Wiki/View.aspx?title=Redirection&referringTitle=Home So my IsapiRewrite4.ini needs to do this two tasks: auto transform and redirection for a number of urls. Can you help out.. I really don't know what I'm doing wrong.

© Server Fault or respective owner

Related posts about windows-server-2003

Related posts about iis6