apache - How to rewrite URL using .htaccess -
i have php script in directory called http://example.com/api/login.php
passing action=myaction&email=me@domain.com&password=mypassword
i want on how can write http://example.com/api/login
uri in c# code
below .htaccess
:
rewriteengine on # turn on rewriting engine rewriterule ^login/?$ login.php [nc,l] rewriterule ^login/([0-9]+)/?$ login.php?email=$1&password$1&action=$1 [nc,l]
Comments
Post a Comment