I need help with htaccess 301 redirect.....

Discussion in 'Apache' started by boxer126, Apr 13, 2008.

  1. #1
    Hi everyone,

    I have no idea how to use htaccess at the moment. I have some research to do. But, I need some quick help with something. I recently re-designed a site using a different script. This of course changed some of the URL's indexed with Google. I don't want to lose the rankings of a certain page.

    WARNING: The following links lead to adult related content.
    I need to know how to 301 permanent redirect the following:
    www.justfilthy.com/categories.php?cat_id=12
    needs to be 301 reredirected to:
    http://justfilthy.com/pussy-tattoos/index.php

    How can I do that? I couldn't find out anywhere. I tried to learn it on my own before asking, but can't figure it out. Please, any help would be greatly appreciated.

    Just so you know, I was able to find how to redirect a .php to .php or .html to .html, but my problem is redirecting a dynamic url to a .php.

    -boxer126
     
    boxer126, Apr 13, 2008 IP
  2. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #2
    manish.chauhan, Apr 14, 2008 IP
  3. boxer126

    boxer126 Well-Known Member

    Messages:
    878
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    145
    #3
    Thanks manish, but I tried that already. It didn't work. The page www.justfilthy.com/categories.php?cat_id=12 doesn't end in .php or .html so I don't think this method works for that reason. It's a dynamically created page when called. Anybody else know a possible answer to this?

    Unless I'm missing something. htaccess should redirect right away, correct?

    -boxer126
     
    boxer126, Apr 14, 2008 IP