301 redirect of dynamic pages

Discussion in 'Site & Server Administration' started by J8Diamonds, Oct 30, 2007.

  1. #1
    I'm transferring a site that was on a dynamic CMS to now output static pages, so what before took the form http://www.mydomain.com/index.php?pg=767 is now http://www.mydomain.com/swisscheese, for example.

    Basically I don't know how to go about this. My current htaccess won't let me forward a dynamic URL to another dynamic URL, but since I'm not using that any more anyway I could use some advice on how to fix this.

    Would putting

    "redirect 301
    /index.php?pg=767
    http://www.mydomain.com/swisscheese"

    in my htaccess work or is it different for dynamic urls?

    Thanks.
     
    J8Diamonds, Oct 30, 2007 IP
  2. J8Diamonds

    J8Diamonds Active Member

    Messages:
    354
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Meh, can't figure it out.

    Here's what I'm putting in, but I just get a 404 error when I try to go to /index.php?pg=8

    redirect 301 /index.php?pg=8 http://www.mydomain.com/index.html

    Can anybody point me in the right direction? Should I be looking at mod_rewrite, because I don't even really know what that is.

    Sigh :(
     
    J8Diamonds, Nov 2, 2007 IP
  3. eskwire

    eskwire Peon

    Messages:
    180
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have the same problem.

    Did you ever get it worked out?

    Thanks!
     
    eskwire, Nov 26, 2007 IP
  4. WL_Marketing

    WL_Marketing Banned

    Messages:
    216
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try this example:

     
    WL_Marketing, Nov 27, 2007 IP