htaccess url rewrite with multiple variables in url
        Posted  
        
            by 
                Cata
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Cata
        
        
        
        Published on 2011-02-08T06:53:44Z
        Indexed on 
            2011/02/08
            7:25 UTC
        
        
        Read the original article
        Hit count: 198
        
Hello, I want to make some url rewrite rules on my .htaccess file so that this link: http://myseite.com/index.php?var1=value1&var2=value2  will become : http://myseite.com/var1/value2.html
So far I have managed successfully to solve this problem but only for one variable.
I also tried this code:
RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?var1=$1&var2=$2 [L]
But it doesn't work..
Thank you for the help!
© Stack Overflow or respective owner