This question already has an answer here:
I am using .htacess and i need to rewrite querystring to name-space as the following:
general_page.php?code=2 To about-us
general_page.php?code=4 To contact
</div>
This question already has an answer here:
I am using .htacess and i need to rewrite querystring to name-space as the following:
general_page.php?code=2 To about-us
general_page.php?code=4 To contact
</div>
I believe that this is what you want
RewriteEngine on
RewriteRule ^about-us$ /general_page.php?code=2 [L]
RewriteRule ^contact$ /general_page.php?code=4 [L]
this will translate http://foo.com/about-us to http://foo.com/general_page.php?code=2 and http://foo.com/contact to http://foo.com/general_page.php?code=4