On Fri, May 24, 2013 at 7:41 AM, Joydeep Bakshi <joydeep.bakshi@xxxxxxxxxxxxxx> wrote: > Hello list, > > Greetings !! > > I am using {QUERY_STRING} to append a value to a particular URL. > > 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 &L=5 has to be appended > > Hence I have made the .htaccess rule as > > RewriteCond %{QUERY_STRING} ^Id=7572&doi=10.5414/ALP33211$ > RewriteRule ^/ALP33211$ /ALP33211&L=1 [R=301] In .htaccess, a leading slash never matches in a RewriteRule. The path you compare to is relative to where the htaccess is, without a leading slash. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx