Is there a common issue with ISAPI rewriting not working
4 posts
• Page 1 of 1
Is there a common issue with ISAPI rewriting not working
(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:
I have tried to troubleshoot using this guide.
I get the '403 Forbidden:Access is denied' page when I change the httpd.conf to :
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:
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 .
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 .
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Is there a common issue with ISAPI rewriting not working
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
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Is there a common issue with ISAPI rewriting not working
But one of the most striking things is that the rule considers .html file to be matched:
while request isn't html file
Regards
Andrew
- 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
Re: Is there a common issue with ISAPI rewriting not working
it is the useful information [url=http://may2018calendar.info/]Sample May 2018 Blank Calendar[/url] that has been user segment of the user
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests