Redirect Dyanamic Urls in Bulk with .htaccess.

Discussion in 'Apache' started by TODMovies, Jul 9, 2009.

  1. #1
    Hi,

    I'd be very grateful if anyone could help me.

    My website is built in joomla and uses virtuemart. It creates a lot of duplicate and relative urls which aren't needed, i need to redirect all of these urls to my 404 page, is there a way of doing this in bulk for e.g like google uses wildcards in robots.txt?

    Here is the url pattern that needs to be redirected:

    index.php?option=com_virtuemart&category_id=26&fly page=flypage.tpl&page=shop.ask&product_id=2411&Ite mid=81

    The problem is that all 2000 urls have individual category_ id's and product_id's

    so is there away of redirecting all urls that have the word "shop.ask" inside them to /404?

    Please help!!!!!!!!!!!!!!!!!!!!!!
     
    TODMovies, Jul 9, 2009 IP