View Full Version : .htaccess problem

04-01-2008, 08:51 AM
in my redirect line, '?' is giving me me a headache.

RedirectMatch /client/index.php(.*)option http://www.mysite.com

Even this line is not working.

What I need is to redirect

www.mysite.com/index.php?option=1 to www.mysite.com using .htaccess

Please help!

04-01-2008, 11:43 AM
RewriteCond %{QUERY_STRING} option
RewriteRule ^(.*)$ http://mysite.com [QSA,L]

This one worked for me.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum