need to redirect the url for ex: the i/p url is http://xyz.com/virtualfolder/?var1=value1 i have .htaccess file in xyz.com/ considering the virtual folder,when we hit the url it should automatically redirect to the file in the physical folder ie:it should execute a file http://xyz.com/physicalfolder/index.php where the i/p url should not change. i tried a lot with mod_rewite but nothing turned positive,any help will be very thankful.
the url should be like the i/p url only if the i/p url is http://xyz.com/profile/?name=test it should execute xyz.com/member/profile.php,i used the rewite rule as RewriteRule ^profile/(.*)$ /members/memberProfile.php?username=$1 but i dont know why this is not working. Any global config is needed for the server??.
That's only correct if domain.com/members/memberProfile.php?username=ANYTHING is the original URL domain.com/profile/ANYTHING is the new URL. domain.com/profile/index.php?name=test is the original URL. What do you want the new URL to be for that? domain.com/members/memberProfile.php?username=ANYTHING and domain.com/profile/index.php?name=test arn't the same thing.