ISAPI_REWRITE 3 IIS Issue (Windows 2008, Plesk)

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 3
Joined: 28 May 2014, 04:09

ISAPI_REWRITE 3 IIS Issue (Windows 2008, Plesk)

28 May 2014, 07:47

Hi, I hope someone can help me.

I installed trial ISAPI_REWRITE 3 on Windows Server 2008 with Plesk to test to make sure it's what I need (and buy).
I used Isapi_Rewrite 2 on Windows 2003 server before.

I created .htaccess file on my vhost.
I think it is working, because when I write rule:

RewriteRule .? - [G] it says page is removed.
RewriteRule .? - [F] says forbidden access..


However, when I go:


# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.104
RewriteEngine On
RewriteRule (.*/)home/? $1home.asp [I]

I get 404 - File or directory not found

I am running Windows 2008 and Plesk. Don't think this is permissions cause forbidden and moved in .htaccess work...

User avatar
Posts: 3
Joined: 28 May 2014, 04:09

Re: ISAPI_REWRITE 3 IIS Issue (Windows 2008, Plesk)

28 May 2014, 07:51

Looked at error.log - no errors.
.htaccess - Loaded successfully.

Looked at rewrite. Last rows are:

91.217.156.133 91.217.156.133 Tue, 15-Apr-2014 11:45:24 GMT [www.ssttours.dev/sid#7][rid#23231032/initial] (2) init rewrite engine with requested uri /home
91.217.156.133 91.217.156.133 Tue, 15-Apr-2014 11:45:24 GMT [www.ssttours.dev/sid#7][rid#23231032/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
91.217.156.133 91.217.156.133 Tue, 15-Apr-2014 11:45:24 GMT [www.ssttours.dev/sid#7][rid#23231032/initial] (1) Htaccess process request d:\plesk\vhosts\ssttours.dev\httpdocs\.htaccess
91.217.156.133 91.217.156.133 Tue, 15-Apr-2014 11:45:24 GMT [www.ssttours.dev/sid#7][rid#23231032/initial] (3) applying pattern '(.*/)home/?' to uri 'home'

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

Re: ISAPI_REWRITE 3 IIS Issue (Windows 2008, Plesk)

28 May 2014, 09:57

Hello,

Please try these lines:

RewriteEngine On
RewriteBase /
RewriteRule ^home/?$ /home.asp [NC,L]

An if it doesn't work, please show the all rewrite.log records for that request again.

User avatar
Posts: 3
Joined: 28 May 2014, 04:09

Re: ISAPI_REWRITE 3 IIS Issue (Windows 2008, Plesk)

28 May 2014, 10:08

Worked like a charm :)
Thank you VERY much. You guys are the best :))


Does this mean when I will be doing more complicated stuff to match my products. Should I go from:
RewriteRule (.*/)search-christmas-day-4-course-lunch-on-thames-cruise-and-classic-london-tour-242 $1products.asp?CategoryID=1&ProductTypeID=35&ProductID=242 [I]

to
RewriteRule ^search-christmas-day-4-course-lunch-on-thames-cruise-and-classic-london-tour-242/?$ /products.asp?CategoryID=1&ProductTypeID=35&ProductID=242 [NC,L]

I am really bad with regex, so I have no idea what your changes mean. But if I do that will I get redirect from Custom product URL to a product page based on Ids?

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

Re: ISAPI_REWRITE 3 IIS Issue (Windows 2008, Plesk)

29 May 2014, 07:16

Does this mean when I will be doing more complicated stuff to match my products. Should I go from:
RewriteRule (.*/)search-christmas-day-4-course-lunch-on-thames-cruise-and-classic-london-tour-242 $1products.asp?CategoryID=1&ProductTypeID=35&ProductID=242 [I]

to
RewriteRule ^search-christmas-day-4-course-lunch-on-thames-cruise-and-classic-london-tour-242/?$ /products.asp?CategoryID=1&ProductTypeID=35&ProductID=242 [NC,L]


Exactly, you got it right!

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 5 guests