simple url redirection

Discussion in 'Apache' started by kmnn, Nov 30, 2011.

  1. #1
    Hi,

    I need some help with mod_rewrite engine. What i want to do is redirect all pages that are accessed with index.php?/topic/xxxx(xxxx being topic name) on domain1 to redirect to another domain say domain2.com

    The reason is i used to run IPB forum on domain1 that i moved to domain2, google still thinks the forums exists and brings visits with the url. I can't do a full domain redirection because i run a site on domain1 and so it would become unviewable with domain redirection.




    PS: the urls in case you need them are domain1 = http://deviatedhacking.com , and domain2 = http://forums.deviatedhacking.com
     
    kmnn, Nov 30, 2011 IP
  2. dren

    dren Active Member

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    dren, Dec 1, 2011 IP
  3. kmnn

    kmnn Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I know how to make simple redirection, the problem was moving ONLY those pages that were accessed with index.php?/topic/.

    Anyway, its solved using PHP function. Thanks for replying anyway.
     
    kmnn, Dec 3, 2011 IP