View Single Post
Old 02-02-2009, 06:13 AM  
LaoTzu
Confirmed User
 
Join Date: Feb 2004
Posts: 350
.htaccess question - query sting param redirect

$10 epass and my eternal gratitude for a working solution:

I need to 301 redirect urls with a specific query string parameter (any value) to my main url. In other words:

Code:
http://www.domain.com/index.php?cat=x
http://www.domain.com/index.php?cat=whatever
redirects to:
Code:
http://www.domain.com
(no file name (index.php), just the main domain.)

but
Code:
http://www.domain.com/index.php?dir=x
stays unchanged.
LaoTzu is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote