Module mod_rewrite and how to write RewriteRule

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

  1. #1
    Hi,

    I installed apache2.2 on Linux and i included the
    LoadModule rewrite_module in the "httpd.conf"
    file.

    I want to write a rule with RewriteRule that redirects this URL

    http://mydomain.com/&tip=variables&param=calling/data.do

    to:

    http://mydomain.com/calling/data.do&tip=variables

    and also when the URL does not include &tip=variables after
    http://mydomain.com/
    then redirect it with out any change.


    Thanks
    mk
     
    mk1336, Aug 23, 2008 IP