Problem with IsapiRewrite Lite 3. on IIS 7.5

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 5
Joined: 28 Mar 2012, 14:19

Problem with IsapiRewrite Lite 3. on IIS 7.5

28 Mar 2012, 15:01

Hi,

I just joined, so excuse me if I ask silly questions.

I installed isapi rewrite 3 lite on server IIS7.5 Win2008 R2.

The isapi appears to be installed properly as it has also created log files in the folder.

My problem is that when trying to call a redirect nothing happens!

This is the httpd.conf file in the folder isapi:

RewriteEngine On
LogLevel debug
RewriteLogLevel 9
RewriteBase /

RewriteRule ^ciro.html$ /inetpub/vhosts/fitnessplay.net/fabrizio.asp


This is the log that comes out:

(2) init rewrite engine with requested are uri /
(1) Htaccess process request C: \ Program Files \ Helicon \ ISAPI_Rewrite3 \ httpd.conf
(3) Applying pattern '^ ciro.html $' to uri''

(2) init rewrite engine with requested are uri / fabrizio.asp
(1) Htaccess process request C: \ Program Files \ Helicon \ ISAPI_Rewrite3 \ httpd.conf
(3) Applying pattern '^ ciro.html $' to uri 'fabrizio.asp'

(2) init rewrite engine with requested are uri / fabrizio.asp
(1) Htaccess process request C: \ Program Files \ Helicon \ ISAPI_Rewrite3 \ httpd.conf
(3) Applying pattern '^ ciro.html $' to uri 'fabrizio.asp'



The domain file on this server are in the following location:

c :/ inetpub / vhosts / fitnessplay.net / httpdocs / fabrizio.asp


Thanks and good job.

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

Re: Problem with IsapiRewrite Lite 3. on IIS 7.5

29 Mar 2012, 05:54

Hello,

Well, your rule should look like this:

Code: Select all
RewriteRule ^ciro\.html$ /fabrizio.asp [NC,R=301,L]


So if you call www.fitnessplay.net/ciro.html it will redirect you to /fabrizio.asp. Is it what you wanted?

Regards
Andrew

User avatar
Posts: 5
Joined: 28 Mar 2012, 14:19

Re: Problem with IsapiRewrite Lite 3. on IIS 7.5

29 Mar 2012, 08:18

Thanks for your prompt reply!

So 'works and works well,

But I wanted to do the reverse, that is the site I have a page with the link www.finessplay.net / fabrizio.asp and I would go out on the bar of the browser www.fitnessplay.net / ciro.html

How do I scivere the RewriteRule?

Thank you.

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

Re: Problem with IsapiRewrite Lite 3. on IIS 7.5

30 Mar 2012, 06:11

You do it vice versa:

Code: Select all
RewriteRule ^fabrizio\.html$ /ciro.asp [NC,R=301,L]


Regards
Andrew

User avatar
Posts: 5
Joined: 28 Mar 2012, 14:19

Re: Problem with IsapiRewrite Lite 3. on IIS 7.5

30 Mar 2012, 12:18

Sorry Andrew,

Maybe I have not explained well, I meant that the home page of fitnessplay.net, (you can watch), there is a button on the left that says: "Fabrizio D'AGOSTINO COORDINATOR Fitnessplay"

When you click on this link should always leave the page "fabrizio.asp" but in the navigation bar at the top of your browser should contain the path:
http://www.fitnessplay.net/ciro.html

Thank you for your patience and Sorry for my English !!

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

Re: Problem with IsapiRewrite Lite 3. on IIS 7.5

02 Apr 2012, 06:14

Than all you need is:

Code: Select all
RewriteRule ^fabrizio\.html$ /ciro.asp [NC,L]


It will be a simple rewrite, not redirect. ISAPI_Rewrite can do that, but can't change your actual links.

Regards
Andrew

User avatar
Posts: 5
Joined: 28 Mar 2012, 14:19

Re: Problem with IsapiRewrite Lite 3. on IIS 7.5

02 Apr 2012, 17:21

I did as you said but when I click on the link bar in IE fabrizio.asp I always displays fabrizio.asp and does not display "ciro"!

I'm down like I can do??

Thank you again.

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

Re: Problem with IsapiRewrite Lite 3. on IIS 7.5

03 Apr 2012, 05:37

I gave 1 example for 301-redirect and another for rewrite. I do not understand what you want. I've already given you both.

Regards
Andrew

User avatar
Posts: 5
Joined: 28 Mar 2012, 14:19

Re: Problem with IsapiRewrite Lite 3. on IIS 7.5

03 Apr 2012, 17:43

This is what I want:

RewriteRule / category / (. *) / (. *). Html / categoria.asp \? Id_cat = $ 1 & id = $ 2 [L]
RewriteRule / articles / (. *) / (. *). Html / pagina_articolo.asp \? Idarticolo = $ 1 & id = $ 2 [L]

But it does not work and do not understand why!

What's wrong??

Thanks again for your time.

Cimar

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

Re: Problem with IsapiRewrite Lite 3. on IIS 7.5

04 Apr 2012, 07:10

remove all spaces from your rules as in following:

Code: Select all
RewriteRule ^category/([^/]+)/([^/]+)\.Html /categoria.asp\?Id_cat=$1&id=$2 [L]
RewriteRule ^articles/([^/]+)/([^/]+)\.Html /pagina_articolo.asp\?Idarticolo=$1&id=$2 [L]


Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 7 guests