301 redirects using htaccess - long urls/query strings

Discussion in 'Apache' started by sipherz, Sep 19, 2011.

  1. #1
    Hi

    I have a bunch of URLs that are indexed by google, but no longer exist on my site. These URLs are for search terms and the search is no longer available on my site.

    The URLs in question are such:

    
    http://www.mydomain.co.uk/catalogsearch/result/index/?color=4&dir=asc&enable_googlecheckout=1&length=17&limit=15&order=relevance&price=3%2C10&q=test+poly+product&type=11
    
    Code (markup):
    So, what I would like to happen, is for anyone finding these links on google, to be redirected to my homepage: http://www.mydomain.co.uk

    Would this be possible in .htaccess?

    Thanks
     
    sipherz, Sep 19, 2011 IP