Announcement

Collapse
No announcement yet.

Need help with a redirect rule

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need help with a redirect rule

    Hi, I get an infinite loop message with the following redirect, can someone help me with the correct syntax. Thanks!

    RewriteCond %{QUERY_STRING} Screen=PROD&Product_Code=JZ053325
    RewriteRule ^(.*)$ http://www.ladybuggiftstore.com/Merc...ode=JZ053325-S [R=301,L]

    #2
    Re: Need help with a redirect rule

    Originally posted by ladybuggiftstore View Post
    Hi, I get an infinite loop message with the following redirect, can someone help me with the correct syntax. Thanks!

    RewriteCond %{QUERY_STRING} Screen=PROD&Product_Code=JZ053325
    RewriteRule ^(.*)$ http://www.ladybuggiftstore.com/Merc...ode=JZ053325-S [R=301,L]
    Change the condition by adding a $ on the end, otherwise it will keep matching because the only difference is the addition of the -S on the end. The $ means "end of string" so nothing can occur after it.
    David Hubbard
    CIO
    Miva
    [email protected]
    http://www.miva.com

    Comment


      #3
      Re: Need help with a redirect rule

      Thanks so much, that fixed the issue!

      Comment

      Working...
      X