redirect using htaccess file
i have one url that i want to redirect using `htaccess`:-

From :-  http://www.example.com/?location=sydney

To :-  http://www.example.com/location/sydney

Location can be anything ...I tried follwoing code but its not working.

    RewriteEngine On 
    RewriteRule /location/(.*)$ /index.php?location=(.*)$ 

I am new this so please help me on this.Thanks in advance 


redirect using htaccess file
===

i have one url that i want to redirect using `htaccess`:-

From :-  http://www.example.com/?location=sydney

To :-  http://www.example.com/location/sydney

Location can be anything ...I tried follwoing code but its not working.

    RewriteEngine On 
    RewriteRule /location/(.*)$ /index.php?location=(.*)$ 

I am new this so please help me on this.Thanks in advance 

