Need Help With .htaccess Redirect Issue

Discussion in 'Apache' started by mitchbuch, Feb 14, 2013.

  1. #1
    Hi,

    I am struggling with an url/parameter issue.

    The main index.php page of my website was previously used for e.g.
    www.domain.com/index.php?site=3&word=21
    Code (markup):
    and
    www.domain.com/index.php?site=3
    Code (markup):
    But now I have changed those things, but in Google the URLs are still listed. So what I need is to redirect all the type of pages above to the main page/domain www.domain.com .

    I believe .htaccess redirect is the right thing to use then, is that correct?

    What type of code do I need to redirect those to main domain. Just the url's with parameters after index.php? etc. not other directories e.g. www.domain.com/sunshine/

    Would be great if someone could help me with this. I believe it is actually a quick fix, but I have failed to get the code correct.

    Thanks.
     
    mitchbuch, Feb 14, 2013 IP
  2. mitchbuch

    mitchbuch Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    Is it possible at all?
     
    mitchbuch, Feb 14, 2013 IP
  3. obosor

    obosor Well-Known Member

    Messages:
    149
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #3
    You can check http://www.htaccessredirect.co.uk/
     
    obosor, Feb 15, 2013 IP