Why can't I set server level rewrite rule?

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 24 Apr 2013, 04:04

Why can't I set server level rewrite rule?

24 Apr 2013, 04:17

I have installed rewrite3.1.0.73 on IIS6 (win2003 server).

I can write my rules to .htaccess file to let a single website take effect.

But when I copy the same rules to the global configuration file(httpd.conf) to apply to all my websites,that will take no effects.

There is "everyone" account permission on httpd.conf and ISAPI_Rewrite.dll.I don't think the permission is the reason of the problem.

Does any one know which reason may cause this problem?

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Why can't I set server level rewrite rule?

24 Apr 2013, 04:52

Hello,

Can you please show the config that you put in httpd.conf.

User avatar
Posts: 2
Joined: 24 Apr 2013, 04:04

Re: Why can't I set server level rewrite rule?

24 Apr 2013, 05:27

I know the reason:

If I want to rewrite index.html to index.php,

in .htaccess file I must write like this:
^index\.html$ index\.php

while in httpd.conf file I must write like this:
^/index\.html$ index\.php

a slash difference between them

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 16 guests