SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast Pramit's Avatar
    Join Date
    Feb 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .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. #2
    SitePoint Enthusiast Pramit's Avatar
    Join Date
    Feb 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    RewriteCond %{QUERY_STRING} option
    RewriteRule ^(.*)$ http://mysite.com [QSA,L]

    This one worked for me.

  3. #3
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,652
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    Pramit,

    May I direct your attention to the tutorial Article in my signature - it's helped MANY others in this forum and, from your mod_rewrite code, you need this badly. Not an insult, it's meant to help - and you know where to find the author to clarify anything that's not clear.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

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