301 redirecting with a word match in URL

Discussion in 'Apache' started by angilina, Nov 23, 2008.

  1. #1
    I am trying to redirect [via .htaccess] all the URLs in my forum which will contain this,

    mode=linear

    Example URL:

    forums/showthread.php?mode=linear&tid=800&pid=1901

    I want to redirect all URLs that will have "mode=linear" in it to a 404 not found page. The reason is that this mode thing create duplication problem.

    Can someone help?
     
    angilina, Nov 23, 2008 IP