Help with mode Rewrite and redirect.

Discussion in 'Apache' started by web_junkie, May 31, 2009.

  1. #1
    I am trying to rewrite one of my dynamic urls to static url, but also I want to redirect the old trafic and page rank to the new one
    I have this code on my .htaccess :

    RewriteEngine On
    RewriteBase /
    Options +FollowSymLinks
    RewriteRule ^area-rugs$ results.php?category=5
    RewriteCond %{QUERY_STRING} ^category=5$
    RewriteRule ^results\.php$ http://www.mysite.com/area-rugs? [R=301,L]

    I get a redirect loop on my browser, any suggestions

    Thanks
     
    web_junkie, May 31, 2009 IP
  2. jnugroho73

    jnugroho73 Peon

    Messages:
    77
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    jnugroho73, Jun 4, 2009 IP
  3. pr0t0n

    pr0t0n Well-Known Member

    Messages:
    243
    Likes Received:
    10
    Best Answers:
    10
    Trophy Points:
    128
    #3
    pr0t0n, Jun 5, 2009 IP
  4. web_junkie

    web_junkie Active Member

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #4
    web_junkie, Jun 6, 2009 IP