Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2007
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .htaccess problem

    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!

  • #2
    New Coder
    Join Date
    Feb 2007
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts

    solved

    RewriteCond %{QUERY_STRING} option
    RewriteRule ^(.*)$ http://mysite.com [QSA,L]

    This one worked for me.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •