Forum Moderators: phranque

Message Too Old, No Replies

www.domain.com/shop/index.php?main page=product info&products id=171

to www.domain.co.uk

         

unperturbed

12:45 am on Sep 20, 2006 (gmt 0)

10+ Year Member



Hi,

I hope someone can hale I'm trying to redirect and url like
www.domain.com/shop/index.php?main_page=product_info&products_id=171 to www.domain.com

RedirectMatch 301 /shop/.* [domain.com...]

it matches to the end of the index.php file but not the rest I end up with it directing to www.domain.com but looks like this in the address bar. www.domain.com?main_page=product_info&products_id=171

How can I fix this?

Cheers,

jdMorgan

1:02 pm on Sep 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use mod_rewrite, and specifically, use RewriteCond to examine %{QUERY_STRING} to test for a specific query string value attached to the URL.

There are many previous threads here on this subject. Try a search of this forum to locate appropriate examples.

Jim

unperturbed

4:49 pm on Sep 20, 2006 (gmt 0)

10+ Year Member



jdMorgan,

Thanks I'll take a look