On 24-May-2013, at 6:46 PM, Tom Evans <tevans...@googlemail.com> wrote:

> On Fri, May 24, 2013 at 2:03 PM, Joydeep Bakshi
> <joydeep.bak...@netzrezepte.de> wrote:
>> It was level 5 and now I have set level 9.
>> From log it seems that the pattern is blindly applied to every link rather
>> than matching the query_string
>> 
>> applying pattern '^ALP33211$' to uri 'index.php'
>> applying pattern '^ALP33211$' to uri
>> 'uploads/repository/02/1276_cn74_1001.gif'
>> applying pattern '^ALP33211$' to uri
>> 'fileadmin/templates/images/btnAddCart.png'
> 
> That cannot be correct, At log level 9, the rewrite log would contain
> a mass of information for a single request, where as you are showing
> only one line per request.
> 
> Please do not trim the log contents or decide what is important and
> what is not, show the entire rewrite log for a single request that
> should be rewritten.
> 
> 
>> ……..
>> ….
>> 
>> where te ruleset I have at .htaccess is
>> 
>> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
>> RewriteRule ^/ALP33211$  /ALP33211&L=1 [R=301]
>> 
>> The actual url is
>> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211
>> 
>> and it has to become
>> 
>> http://www.mydomain.com/index.php?id=7&artId=7572&doi=10.5414/ALP33211&L=5
>> 
> 
> The URL is "/index.php". Everything else is part of the query string.
> Your RewriteRule is predicated on the URL "/ALP33211", and so is
> ignored. In a .htaccess, you must also not specify the leading '/'
> either.
> 
> Please do show the correct log entries, but this should work (untested):
> 
> RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$
> RewriteRule index.php index.php?L=5 [QSA,R=301]
> 
> Cheers
> 
> Tom

Hello Tom,

applied your rules  at .htaccess but no luck.

The log says as follows

122.176.30.116 - - [24/May/2013:16:02:13 +0200] 
[www.mydomain.com/sid#7f251146d330][rid#7f251191fa18/initial] (4) [perdir 
/srv/www/htdocs/mydomain/] RewriteCond: 
input='id=7&artId=7572&doi=10.5414/ALP33211' 
pattern='^Id=7572&doi=10.5414/ALP33211$' => not-matched
122.176.30.116 - - [24/May/2013:16:02:14 +0200] 
[www.mydomain.com/sid#7f251146d330][rid#7f251193cc20/initial/redir#1] (4) 
[perdir /srv/www/htdocs/mydomain/] RewriteCond: input='' 
pattern='^Id=7572&doi=10.5414/ALP33211$' => not-matched



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to