error on site navigation

Topics: Developer Forum, User Forum
Jun 7, 2010 at 10:40 AM

Hello, I have a problem with the following IIRF.ini:

RewriteLogLevel 2
RewriteLog C:\temp\iirf
RewriteEngine On
CondSubstringBackrefFlag %
RewriteCond %{QUERY_STRING} navegacion_original
RewriteRule .* - [L]
RewriteCond %{REQUEST_METHOD} ^GET$
RewriteCond %{QUERY_STRING} traducir=([^&]+)
RewriteCond %{QUERY_STRING} !inurl
ProxyPass ^.*$ http://mydomain.com/browser.php?inurl=%{HTTP_HOST}%{REQUEST_URI} [QSA]
RewriteCond %{REMOTE_ADDR} !^192.168.0.100$
RewriteCond %{HTTP_REFERER} traducir=([^&]+)
RewriteRule ^(.*\.(php|html|htm|phtml|cgi|pl)|.*/)$ $1?traducir=%1  [QSA,R]

When I a go to a URL of the form, "example.com/index.html?traducir=es-en" the result is the hoped one, nevertheless when I click on the links of the site although the URL of the navigator changes to directions like "example.com/section1.html?traducir=es-en" , the content is not the one of this section1.html link, is the same of the index.html.

This is the log with loglevel=2

Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: actual log file 'C:\temp\iirf.3636.log'
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: ini file: 'C:\example.com\www\Iirf.ini'
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: ini file timestamp: 2010/06/07 10:50:33 Romance Daylight Time
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: cfg(0x01F66B60)
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: LogLevel = 2
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(4): RewriteEngine will be enabled.
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(10): CondSubstringBackrefFlag %
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: setting CondSubstringBackrefFlag to '%'
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(12): RewriteCond   %{QUERY_STRING}  navegacion_original '(null)'
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(13): RewriteRule (rule 1)  '.*'  '-'      [L]
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(15): RewriteCond   %{REQUEST_METHOD}  ^GET$ '(null)'
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(16): RewriteCond   %{QUERY_STRING}  traducir=([^&]+) '(null)'
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(17): RewriteCond   %{QUERY_STRING}  !inurl '(null)'
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(18): ProxyPass (rule 2)  '^.*$'  'http://mydomain.com/browser.php?inurl=%{HTTP_HOST}%{REQUEST_URI}'    [QSA]
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(20): RewriteCond   %{REMOTE_ADDR}  !^82.98.146.45$ '(null)'
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(21): RewriteCond   %{HTTP_REFERER}  traducir=([^&]+) '(null)'
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(22): RewriteRule (rule 3)  '^(.*\.(php|html|htm|phtml|cgi|pl)|.*/)$'  '$1?traducir=%1'  [QSA,R]
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: INFO: RewriteRule with R modifier - will Redirect
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: C:\example.com\www\Iirf.ini(22): INFO: Redirecting to a target that does not include an http(s):// scheme.
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: The rule will Redirect to a target on the local machine
Mon Jun 07 10:50:35 -  7516 - ReadVdirConfig: Done reading INI for vdir(), found 3 rules (0 errors, 0 warnings) on 38 lines
Mon Jun 07 10:50:35 -  7516 - DoRewrites: Url (no decoding): '/section1.html'
Mon Jun 07 10:50:35 -  7516 - DoRewrites: Redirect (code=302) Url to: '/section1.html?traducir=es-en_US'
Mon Jun 07 10:50:35 -  5276 - DoRewrites: Url (no decoding): '/section1.html?traducir=es-en_US'
Mon Jun 07 10:50:35 -  5276 - DoRewrites: Proxy to: 'http://mydomain.com/browser.php?inurl=example.com&traducir=es-en_US'
Mon Jun 07 10:50:35 -  7516 - DoRewrites: Url (no decoding): '/?mytrad=es-en_US'
Mon Jun 07 10:50:35 -  7516 - DoRewrites: No Rewrite
Mon Jun 07 10:50:36 -  7516 - DoRewrites: Url (no decoding): '/style.css'
Mon Jun 07 10:50:36 -  7516 - DoRewrites: No Rewrite

Thanks in advance!!

Jun 8, 2010 at 1:34 PM

please, see http://iirf.codeplex.com/Thread/View.aspx?ThreadId=215312