Is there a common issue with ISAPI rewriting not working

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 08 Mar 2013, 12:38

Is there a common issue with ISAPI rewriting not working

08 Mar 2013, 13:19

(Accidentally posted this on the v2 thread, its actually v3 ive realised)

I am running ISAPI on IIS 6.1 and my site is written in PHP.

I am trying to make a simple rewrite that would change a url like this: whatever.com/topic/index.php?topic=public-health

to: whatever.com/topic/public-health

My httpd.conf file looks like this:

Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)\.htm$ /index.php?category=$1 [NC,QSA,L]
RewriteRule ^topic/([^/]+)\.htm$ /topic/index.php?topic=$1 [NC,QSA,L]


I have tried to troubleshoot using this guide.

I get the '403 Forbidden:Access is denied' page when I change the httpd.conf to :
Code: Select all
RewriteEngine on RewriteRule .? - [F]


There is also nothing wrong with the error logs

which apparently proves that ISAPI is working properly, so why on earth are the urls not being rewritten? I have tried simple rules like:
Code: Select all
#RewriteEngine on #RewriteRule ^index.php$ index.html? [NC,R]


But even these don't work.

Is there a common problem I might have? configuration? Been troubleshooting this all day and can't find much online about this problem, so have come to the forums as a last resort. Thanks for any help :mrgreen: .

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Is there a common issue with ISAPI rewriting not working

08 Mar 2013, 15:47

Hello,

A good way to find out is to see the error.log and rewrite.log.
Would you ,please, provide them for a testing request? Logging issues are also described at FAQ - http://www.helicontech.com/forum/10648-FAQ.html

Regards
Andrew

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Is there a common issue with ISAPI rewriting not working

08 Mar 2013, 15:49

But one of the most striking things is that the rule considers .html file to be matched:

Code: Select all
RewriteRule ^topic/([^/]+)\.htm$ /topic/index.php?topic=$1 [NC,QSA,L]


while request isn't html file

whatever.com/topic/public-health


Regards
Andrew

User avatar
Posts: 1
Joined: 24 Apr 2018, 09:04

Re: Is there a common issue with ISAPI rewriting not working

24 Apr 2018, 09:08

it is the useful information [url=http://may2018calendar.info/]Sample May 2018 Blank Calendar[/url] that has been user segment of the user

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 15 guests