Problem with IsapiRewrite Lite 3. on IIS 7.5
10 posts
• Page 1 of 1
Problem with IsapiRewrite Lite 3. on IIS 7.5
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.
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.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Problem with IsapiRewrite Lite 3. on IIS 7.5
Hello,
Well, your rule should look like this:
So if you call www.fitnessplay.net/ciro.html it will redirect you to /fabrizio.asp. Is it what you wanted?
Regards
Andrew
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
Re: Problem with IsapiRewrite Lite 3. on IIS 7.5
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.
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.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Problem with IsapiRewrite Lite 3. on IIS 7.5
You do it vice versa:
Regards
Andrew
- Code: Select all
RewriteRule ^fabrizio\.html$ /ciro.asp [NC,R=301,L]
Regards
Andrew
Re: Problem with IsapiRewrite Lite 3. on IIS 7.5
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 !!
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 !!
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Problem with IsapiRewrite Lite 3. on IIS 7.5
Than all you need is:
It will be a simple rewrite, not redirect. ISAPI_Rewrite can do that, but can't change your actual links.
Regards
Andrew
- 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
Re: Problem with IsapiRewrite Lite 3. on IIS 7.5
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.
I'm down like I can do??
Thank you again.
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Problem with IsapiRewrite Lite 3. on IIS 7.5
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
Regards
Andrew
Re: Problem with IsapiRewrite Lite 3. on IIS 7.5
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
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Problem with IsapiRewrite Lite 3. on IIS 7.5
remove all spaces from your rules as in following:
Regards
Andrew
- 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
10 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests