Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: aspi 2 compatibility Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ceimedia
Newbie
Newbie


Joined: 25 September 2005
Location: France
Online Status: Offline
Posts: 5
Posted: 13 May 2008 at 3:36am | IP Logged Quote ceimedia

This simple rule whith isapi v2 goes fine :

RewriteCond Host: (?:www\.)?travailler-autrement\.org
RewriteRule (.*)/blog/(.*) $1/news/index\.php\?$2 [I,L]

And is translated in V3 as using v2 import as
RewriteCond %{HTTP:Host} ^(?:www\.)?travailler-autrement\.org$
RewriteRule ^(.*)/blog/(.*)$ $1/news/index\.php\?$2 [NC,L]

And does'nt operate correctlty..

Example :
http://www.travailler-autrement.org/blog/assemblee-generale-2008-a-l-aquarium-de-saint-malo-le-23-avril-95

This woud be rewrite as :
http://www.travailler-autrement.org/news/index.php?assemblee-generale-2008-a-l-aquarium-de-saint-malo-le-23-avril-95

Any suggestion ?







Edited by ceimedia - 13 May 2008 at 3:37am
Back to Top View ceimedia's Profile Search for other posts by ceimedia Visit ceimedia's Homepage
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6455
Posted: 13 May 2008 at 7:25am | IP Logged Quote Yaroslav

Rules after translation can only be used within httpd.conf without modifications. The link base for .htaccess could be different:

RewriteCond %{HTTP:Host} ^(?:www\.)?travailler-autrement\.org$
RewriteRule ^(.*)/?blog/(.*)$ $1/news/index\.php\?$2 [NC,L]

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
ceimedia
Newbie
Newbie


Joined: 25 September 2005
Location: France
Online Status: Offline
Posts: 5
Posted: 13 May 2008 at 8:04am | IP Logged Quote ceimedia

OK,

RewriteRule ^(.*)/?blog/(.*)$ $1/news/index\.php\?$2 [NC,L]

These rule doens'nt operate also. I can't finf what is wrong ?

If I understand you, I need to paste code imported from V2 in httpd.conf as it came from import tool - is it correct ?
Back to Top View ceimedia's Profile Search for other posts by ceimedia Visit ceimedia's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4178
Posted: 14 May 2008 at 3:55am | IP Logged Quote Anton

Please try to use the following config:

RewriteBase /
RewriteCond %{HTTP_HOST} ^(?:www\.)?travailler-autrement\.org$
RewriteRule ^(.*)/blog/(.*)$ $1/news/index.php?$2 [NC,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
ceimedia
Newbie
Newbie


Joined: 25 September 2005
Location: France
Online Status: Offline
Posts: 5
Posted: 14 May 2008 at 4:09am | IP Logged Quote ceimedia

Does'n work !

see my v2 http.ini config (this works fine) :

RewriteCond Host: (?:www\.)?travailler-autrement\.org
RewriteRule (.*)/blog/(.*) $1/news/index\.php\?$2 [I,L]

see v3

RewriteBase /
RewriteCond %{HTTP_HOST} ^(?:www\.)?travailler-autrement\.org$
RewriteRule ^(.*)/blog/(.*)$ $1/news/index.php?$2 [NC,L]

Notice that I isolate the problem : there ios no other rules on this config

What can I do to debug and find the problem ?


Edited by ceimedia - 14 May 2008 at 4:10am
Back to Top View ceimedia's Profile Search for other posts by ceimedia Visit ceimedia's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4178
Posted: 14 May 2008 at 8:40am | IP Logged Quote Anton

Please add the following directive into httpd.conf:
RewriteLogLevel 9
And provide rewrite log records for the specific non-working request.


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
ceimedia
Newbie
Newbie


Joined: 25 September 2005
Location: France
Online Status: Offline
Posts: 5
Posted: 15 May 2008 at 5:11am | IP Logged Quote ceimedia

I have only that !

82.239.16.59 82.239.16.59 Thu, 15-May-2008 11:44:54 GMT [www.travailler-autrement.org/sid#477946352][rid#21495824/initial] (2) init rewrite engine with requested uri /blog/assemblee-generale-2008-a-l-aquarium-de-saint-malo-le-23-avril-95
82.239.16.59 82.239.16.59 Thu, 15-May-2008 11:44:54 GMT [www.travailler-autrement.org/sid#477946352][rid#21495824/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
Back to Top View ceimedia's Profile Search for other posts by ceimedia Visit ceimedia's Homepage
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4178
Posted: 16 May 2008 at 3:34am | IP Logged Quote Anton

No other log records for the request?
Make sure you specified RewriteLogLevel 9.
Also provide IIS log records and testing url.


__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum