Is it possible to write a rule with RewriteCond and query_string

Discussion in 'Apache' started by mk1336, Aug 25, 2008.

  1. #1
    Is it posssible to write a rule on .htaccess file with RewriteRule,
    RewriteCond and query_string that redirects this URL


    http://mydomain.com/&tip=variables&m=data.php

    to:

    http://mydomain.com/data.php&tip=variables


    Thanks,
    MK
     
    mk1336, Aug 25, 2008 IP
  2. The Universes

    The Universes Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I would just rewrite the first url to a php file and have that php file do the redirect. Would be pretty simple to do.
     
    The Universes, Aug 26, 2008 IP
  3. mk1336

    mk1336 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your reply.
    How?
    The first url does not match to the php.
    mk
     
    mk1336, Aug 26, 2008 IP