Apache redirect query strings

Discussion in 'Site & Server Administration' started by qwerty1234, Oct 4, 2010.

  1. #1
    Hi
    I'm new here hoping for some help.

    I want to redirect pages from one domain to a subdomain. I am trying to redirect all query strings on one page to the new domain. So, this page

    http://www.domain.com/name?id=123&name_id=name4567

    should redirect to

    http://www.subdomain.domain.com/name?id=123&name_id=name4567

    All posts on this page
    http://www.domain.com/name?id=123
    are to be redirected with the full string to the corresponding page on the subdomain.

    Any help is appreciated

    Thanks!
     
    qwerty1234, Oct 4, 2010 IP