need help with 301 redirect for dynamic pages in htaccess

Discussion in 'Site & Server Administration' started by shadow_boi, Jul 16, 2010.

  1. #1
    Hi guys,
    I have a dynamic page say: www.mysite.com/index?lookup=faqs

    I want use a static url like: www.mysite.com/yourfaqs to visit that page. And once people enter the dynamic url, it should be directed to the static url.

    That is, the URL shown on the address bar on the browser, should always be the static url.

    I have the following rules:

    RewriteRule ^yourfaqs /index.php?lookup=faqs [L]

    RewriteCond %{QUERY_STRING} lookup=faqs
    RewriteRule ^index\.php$ http://www.mysite.com/yourfaqs/$1? [R=301,L]

    But as might see the problem here, it keeps redirecting.
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    Is there a way to do what i want?
    Thanks in advance.
     
    Last edited: Jul 16, 2010
    shadow_boi, Jul 16, 2010 IP
  2. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #2
    zacharooni, Jul 18, 2010 IP