301 redirect problem

Discussion in 'Programming' started by William, Aug 28, 2006.

  1. #1
    How do I 301 redirect urls with variables.

    I have tried.
    Redirect 301 /forum/kb.php?mode=cat&cat=2 http://www.mydomain.com/rest-of-url.html without any success.
    (one line without any luck)

    Other redirects such as none www to www redirect works.
     
    William, Aug 28, 2006 IP
  2. danielbruzual

    danielbruzual Active Member

    Messages:
    906
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Are you trying to transform the URL into something more simple? If you are, you should do a Mod Rewrite instead of a 301.
     
    danielbruzual, Aug 28, 2006 IP
  3. GeorgeB.

    GeorgeB. Notable Member

    Messages:
    5,695
    Likes Received:
    288
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Not if he wants the SEs to index the new .html URLs.
     
    GeorgeB., Aug 28, 2006 IP
  4. William

    William Well-Known Member

    Messages:
    1,310
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    140
    #4
    GeorgeB Got it right. I want the SE:s to index the new .html pages and understand that the old forum/kb.php?mode=cat&cat=2 have been moved to the new .html pages.

    I tried cpanel redirects as well but cpanel strips the variables from the redirects.
     
    William, Aug 28, 2006 IP