Getting the ReWrite working

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 3
Joined: 25 Jun 2012, 16:31

Getting the ReWrite working

25 Jun 2012, 16:39

My website is on a Windows sever, running Helm.
URL ReWriting extention has been installed, and the sever provider says it seems to be installed correctly.
Once installed it lets me view the documentation of 'Helicon Tech ISAPI_Rewrite v3 ' so I guess I have Version 3 installed.

My .htaccess file contains

RewriteEngine on
RewriteBase /
RewriteRule ^products/[^?/]*_(\d+)\.asp productpage.asp?productID=$1 [QSA]


however when I access http://www.cameras-4u.co.uk/products/test_101.asp I get a 404 eror
I was expecting it to redirect me to productpage.asp?productID=101

Is there a simple test I can run to prove some part of URL rewrite is working?


Thanks
Dan.

User avatar
Posts: 3
Joined: 25 Jun 2012, 16:31

Re: Getting the ReWrite working

26 Jun 2012, 05:33

With this rewrite rule

RewriteBase /
RewriteRule ^products/[^?/]*_(\d+)\.htm productpage.asp?productID=$1

I get this in the IIS Log

2012-06-26 08:26:46 GET /products/test_127.htm - 80 - HTTP/1.1 Mozilla/5.0+(Windows+NT+5.1;+rv:12.0)+Gecko/20100101+Firefox/12.0 - www.cameras-4u.co.uk 404

So I get a 404 error, I know productpage.asp exists. It would appear the URLReWrite isn't working at all, or its not reading the .htaccess file

User avatar
Posts: 3
Joined: 25 Jun 2012, 16:31

Re: Getting the ReWrite working

26 Jun 2012, 10:44

I have contacted the hosting company again, they has tinkered with something, mainly permissions I believe so I could get the log files working. I've not got the log files working, but the redirect is working perfectly. So now I can work though your examples.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 24 guests