| Author |
|
ceimedia Newbie

Joined: 25 September 2005 Location: France
Online Status: Offline Posts: 5
|
| Posted: 13 May 2008 at 3:36am | IP Logged
|
|
|
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 |
|
| |
Yaroslav Moderator Group

Joined: 15 August 2002
Online Status: Offline Posts: 6445
|
| Posted: 13 May 2008 at 7:25am | IP Logged
|
|
|
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 |
|
| |
ceimedia Newbie

Joined: 25 September 2005 Location: France
Online Status: Offline Posts: 5
|
| Posted: 13 May 2008 at 8:04am | IP Logged
|
|
|
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 |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Online Posts: 3892
|
| Posted: 14 May 2008 at 3:55am | IP Logged
|
|
|
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 |
|
| |
ceimedia Newbie

Joined: 25 September 2005 Location: France
Online Status: Offline Posts: 5
|
| Posted: 14 May 2008 at 4:09am | IP Logged
|
|
|
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 |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Online Posts: 3892
|
| Posted: 14 May 2008 at 8:40am | IP Logged
|
|
|
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 |
|
| |
ceimedia Newbie

Joined: 25 September 2005 Location: France
Online Status: Offline Posts: 5
|
| Posted: 15 May 2008 at 5:11am | IP Logged
|
|
|
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 |
|
| |
Anton Moderator Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Online Posts: 3892
|
| Posted: 16 May 2008 at 3:34am | IP Logged
|
|
|
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 |
|
| |